HST-PF
魯蛇如我年薪約 = ㄈmj年薪 * 0.0001
x = 時薪;y = 月薪;i = 上班時數;j = 摸魚時數
import socket
for i in range(1,65536):
try:
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.settimeout(5)
s.connect(('meto.joey.tw',i))
print 'Port %d is ok' % (i)
except socket.timeout:
pass
直接掃掃看那些port有開
[joey@118chicken ~]# nc -L show.me.the.money:9999 -p 4444 -vvv
from selenium import webdriver
from TorCtl import TorCtl
def change_ip():
conn = TorCtl.connect(controlAddr='127.0.0.1', controlPort=9051,passphrase='123456')
conn.send_signal('NEWNYM')
def setPF():
ua = [ l.strip() for l in open('useragent','r') ]
pf = webdriver.FirefoxProfile()
pf.set_preference('network.proxy.type',1)
pf.set_preference('network.proxy.socks','127.0.0.1')
pf.set_preference('network.proxy.socks_port',9050)
pf.set_preference('general.useragent.override',random.choice(ua))
pf.update_preferences()
return pf
b = webdriver.Firefox(firefox_profile=setPF())
b.get('show.me.the.money')
自動變換IP
import sys, SocketServer, threading, time, json, Queue, urllib2
queue = Queue.Queue()
i = 0
def getTorList():
data = urllib2.urlopen('https://check.torproject.org/exit-addresses').read()
for d in data.split('\n')[:4000]:
if 'ExitNode' in d:
queue.put( d.split(' ')[1] )
class MyHandler(SocketServer.StreamRequestHandler):
def handle(self):
global i
while True:
data = self.request.recv(1024)
if data.strip() == 'giveme':
try:
i += 1
tor = queue.get(timeout=1)
except Queue.Empty:
i = 1
getTorList()
tor = queue.get(timeout=1)
print i,'/',queue.qsize()
self.request.sendall(tor)
self.finish()
class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
allow_reuse_address=True
pass
if __name__ == '__main__':
getTorList()
bots = []
port = int(sys.argv[1])
server = ThreadedTCPServer(('0.0.0.0',port), MyHandler)
server_thread = threading.Thread(target=server.serve_forever)
server_thread.setDaemon(True)
server_thread.start()
server.serve_forever()
分配IP Server端
def resetTorrc():
s = socket.create_connection(('i.am.very.poor',9527))
s.send('giveme')
tor = s.recv(1024).strip()
s.close()
torrc = '''
ControlPort 9051
StrictExitNodes 1
ExitNodes %s
''' % (tor)
f = open('/etc/tor/torrc','w')
f.write(torrc)
f.close()
os.system('service tor restart')
取得IP Client端
媽蛋...還給不給人活路
1個禮拜可以大約賺到 0.01 BCT
大約等於 1 cBCT
大約等於 10 mBCT
大約等於 10000 μBTC
大約等於 1000000 satoshi !!!
等於一個月可以賺到四百萬個 satoshi !!!!