Tag Archives for hacking
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)" |
Compiling reaver-wps
Reaver implements a brute force attack against Wifi Protected Setup (WPS) registrar PINs in order to recover WPA/WPA2 passphrases. Reaver has been designed to be a robust and practical attack against WPS, and has been tested against a wide variety … Continue reading
[Python] MySQL Brute
I have put together a basic MySQL bruteforcing script in python. Standard execution applies; supply the script with an ip, username and password list and let it run. Video of MySQlBrute in action: Here’s the code. (Using pastebin until I … Continue reading