✏️
TIL
  • TIL
  • bash
    • Duplicate lines in a text file
    • bash keyboard shortcuts
  • git
    • Git is a good place to keep notes
  • ssh
    • SSH Agent via systemd
  • wireshark
    • Show any field in the packet list display
    • show ja3 hashes in wireshark
  • zip
    • Run a script from a zip file
Powered by GitBook
On this page

Was this helpful?

  1. zip

Run a script from a zip file

Nice little trick to package a python program or slip something past a malware scanner

You could stick it inside anything that's based on zip like a jar, apk, docx, etc. You can even make it executable.

$ mkdir test
$ echo "print('hello world')" > test/__main__.py
$ zip -j test.zip test/*
$ python3 test.zip
hello world
$

references

@indiecom (backup)

Previouszip

Last updated 5 years ago

Was this helpful?