Linux MAC changer for Rapidshare downloads   no comments

Posted at 3:48 pm in Uncategorized

To get over rapidshare download limits. This works both for static and dynamic assigned IPs.

I got this off hak5.org and made some adjustments for my connection.

#!/usr/bin/python
import os, random

mac = “00″ # MAC Addressed typically start with 00. Looks more legit

i=0
# This next part should be apparent. Fills in the mac with random hex
while (i<5):
mac = mac + “:” + str(hex(random.randint(0,15))[2:])
mac = mac + str(hex(random.randint(0,15))[2:])
i = i+1
changer = “ifconfig eth0 hw ether ” + str(mac)
print “New MAC generated:”, str(mac)

# Stops network services, assigns new mac, restarts networking
raw_input(”Turn OFF modem. Press ENTER to stop net”)

print “stopping net…”
print “changing mac…”

os.system(”/etc/init.d/net.eth0 stop”) # You may need to change this.

os.system(changer)

raw_input(”Turn on modem. Wait for 4 lights. Press ENTER to start net”)
print “starting net…”
os.system(”/etc/init.d/net.eth0 start”)

Written by admin on September 9th, 2007

Leave a Reply