-
Scapy fundamentals Commands for the interactive scapy interpreter: conf.iface shows the currently used interface conf.iface='tun0' sets the interface to use ls shows all protocols ls(TCP) shows all known headers for a given protocol lsc shows build-in functions Details about a packet p: p shows general information p.summary() shows also general information p.show() shows each field and…
-
Network packet manipulation shell and library for Python. (Github)
-
Convert a Python2 script into a Python3 script: 2to3 -w example.py Fix tab/space/identation problems: autopep8 -i linuxprivchecker.py If a library is installed, but cannot found from smb.SMBConnection import SMBConnection then try to search the file locally and include the path manually: import syssys.path.append("path/to/your/file") Oneliner for executing bash in a file: echo 'import os;os.system("/bin/bash")' > /tmp/e.py Execute something:…