-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathUltraSimple
More file actions
102 lines (81 loc) · 2.53 KB
/
UltraSimple
File metadata and controls
102 lines (81 loc) · 2.53 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
hc=get_shell.host_computer
mx = include_lib("/lib/metaxploit.so")
crypto = include_lib("/lib/crypto.so")
print("---------------------------------")
print("~~~ Made by Saschahi ~~~")
print(" ")
print("Ultra Simplistic Lib Exploiter")
print("Not made for Router-Exploits")
print("https://discord.gg/dkaMDj8c6b")
print(" ")
print("How To:")
print("1. Put in IP")
print("2. Put in Port")
print("3. ???")
print("4. Profit")
print("---------------------------------")
if not mx then
mx = include_lib(current_path+"/metaxploit.so")
if not mx then
exit("Please install metaxploit.so in /lib or in installation directory.")
end if
end if
if not crypto then
crypto = include_lib(current_path+"/crypto.so")
if not crypto then
exit("Please install crypto.so in /lib or in installation directory.")
end if
end if
hack = function(ip,port)
r=get_router(ip)
netsess = mx.net_use(ip,port)
lib = netsess.dump_lib
addrs = mx.scan(lib)
exhandler = function(addr,unsec)
ex = lib.overflow(addr,unsec)
if typeof(ex) == "computer" then
pwd = ex.File("/etc/passwd")
if not pwd == null then
if pwd.has_permission("r") then
print(pwd.get_content)
else
print("<color=red>Fantom doesn't have permission too read /etc/passwd</color>")
end if
else
print("<color=red>The password file seems too have been deleted...</color>")
end if
end if
if typeof(ex) == "shell" then
print("Fantom has found a shell\nwould you like too use it? y/n")
said = user_input("Answer:")
if said == "y" then ex.start_terminal end if
end if
end function
for addr in addrs
info = mx.scan_address(lib,addr)
info = info.remove("decompiling source...").remove("searching unsecure values...")
info = info[2:]
while info.indexOf("Unsafe check: ") != null or info.indexOf("<b>") != null or info.indexOf("</b>") != null
info = info.remove("Unsafe check: ").remove("<b>").remove("</b>")
end while
while info.indexOf("loop in array ") != null
info = info.replace("loop in array ", "<tag>")
end while
while info.indexOf("string copy in ") != null
info = info.replace("string copy in ", "<tag>")
end while
while info.indexOf("<tag>") != null
a = info.indexOf("<tag>") + 5
info = info.remove(info[:a])
str = info[:info.indexOf(".")]
exhandler(addr,str)
end while
//print(info)
end for
end function
while(true)
target1 = user_input("\n<color=green>Target IP: </color> ")
target2 = user_input("\n<color=green>Target Port: </color> ")
port = target2.to_int
hack(target1,port)
end while