Tag Archives for programming
OS X Packet Forwarding
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.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/usr/bin/python import subprocess as subp import sys, os isroot = os.getuid() if isroot == 0: try: mode = sys.argv[1] 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() except IndexError: print "\n[+] Usage: enable_packet_forwarding -enable / -disable\n" else: print "[!] Run as root (sudo)" |
Credential harvesting via ARP poison [UPDATED]
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
Script to join avi files [UPDATE]
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
Python hash creator
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).