Tag Archives for programming
Wow, first post of 2013. Here is a quick python script I put together to enable/disable packet forwarding in OS X. To be used in conjunction with arp spoofing etc.
import subprocess as subp
import sys, os
isroot = os.getuid()
if isroot == 0:
mode = sys.argv
if mode == "-enable":
print "[+] Enabling Packet forwarding"
subp.Popen("sysctl -w net.inet.ip.forwarding=1 > /dev/null 2>&1", shell=True).wait()
elif mode == "-disable":
print "[+] Disabling Packet forwarding"
subp.Popen("sysctl -w net.inet.ip.forwarding=0 > /dev/null 2>&1", shell=True).wait()
print "\n[+] Usage: enable_packet_forwarding -enable / -disable\n"
print "[!] Run as root (sudo)"
Is it me or when your programming skills improve you find yourself looking back over past programs you created and think to yourself why didn’t I do that like this? I spent a fair few hours over the past weekend … Continue reading
I posted a while ago with a script to join two parts of an avi file, split files are common with downloaded video. I have modified the program so it now uses command line arguments. You can download it here. … Continue reading
I have knocked up a little python script that takes user input and creates a hash. You have the option of selecting md5, sha1, sha224, sha256, sha384 or sha512. You can download the program from here (right click, save as).