Grey Hack

Grey Hack

Grey Hack Community Translations
Subscribe to user contributed translations to play Grey Hack in the language of your choice.
Community Scripts and Tools
This discussion is intended for the community and its player.
The intent of this discussion is to post custom tools to help aid in the progression of this game.
最后由 Letha1blow 编辑于; 3 月 2 日 下午 12:57
< >
正在显示第 1 - 6 条,共 6 条留言
Letha1blow 3 月 2 日 下午 12:59 
//mdec Modified Decipher
//ver 1.0
/Credit for Base: Grey Hack Gaming Decipher
//This version prints all of the passwords at the end for easy copying
//Critical error found. Don't use until message is removed
cryptools = include_lib("/lib/crypto.so")
if not cryptools then exit("Error: Missing crypto library")

GetPassword = function(userPass)
if userPass.len != 2 then return("mdec: wrong syntax")
userPass = userPass[1].split(":")
password = cryptools.decipher(userPass[0])
return password
end function

if params.len != 1 or params[0] == "-h" or params[0] == "--help" then exit("<b>Usage: ctmdec [encrypted file]</b>")

origFile = params[0]
file = get_shell.host_computer.File(origFile)
if file then
if not file.has_permission("r") then exit("mdec: can't read file. Permission denied")
if file.get_content.len == 0 then exit("mdec: no users found")
lines = file.get_content.split("\n")
else if origFile.len > 33 then
lines =[origFile]
else
exit("mdec: can't find " + origFile)
end if

for line in lines
userPass = line.split(":")
password = GetPassword(userPass)
if not password then print ("Can't find password :(")
if password then print(password)
end for
最后由 Letha1blow 编辑于; 3 月 6 日 下午 3:21
Letha1blow 3 月 2 日 下午 4:52 
//airraid
//ver 1.0
//Credit: Kunull
//Fixed ESSID calling issue
if params.len != 1 or params[0] == "-h" or params[0] == "--help" then
exit("Enter ESSID")
end if
ESSID = params[0]
computer = get_shell.host_computer
devices = computer.network_devices
if devices == null then exit("iwlist: Network device not found")
networks = computer.wifi_networks("wlan0")
if networks == null then exit(command_info("iwlist_usage"))

for network in networks
column = network.split(" ")
if column[2] == ESSID then
selection = column[0]
pwr = column[1][:-1].to_int
break
end if
end for

BSSID = selection

/////////////////

acks = 300000 / pwr

crypto = include_lib("/lib/crypto.so")

crypto.airmon("start", "wlan0")

crypto.aireplay(BSSID, ESSID, acks)

password = crypto.aircrack("/home/" + active_user + "/file.cap")

connectionResult = get_shell.host_computer.connect_wifi("wlan0", BSSID, ESSID, password)
if typeof(connectionResult) == "string" then
print("There was an error while connecting to new Wifi: " + connectionResult)
else if connectionResult == null then
print("Something wrong with arguments in 'connect_wifi'")
else
print("Connected to new Wifi successfully.")
end if
print("\nPassword to " + ESSID + " is: " + password + "\n")

get_shell.host_computer.File("/home/" + active_user + "/file.cap").delete

crypto.airmon("stop", "wlan0")
最后由 Letha1blow 编辑于; 3 月 6 日 下午 3:20
Letha1blow 3 月 2 日 下午 4:56 
//uexpsys: Universal Exploit System
//ver 1.01
//call lib for exploit info. Need root exploit.
//credit: Grey Hack Gaming
metaploit = include_lib("/lib/metaxploit.so")
if not metaploit then exit("Error: Missing metaploit.so")
if params.len != 4 or params[0] == "-h" or params[0] == "--help" then exit("<b>Usage: uexpsys [ip_address] [port] [memory] [value]/</b>")
address = params[0]
port = params[1].to_int
net_session = metaploit.net_use( address, port )
if not net_session then exit("Error: can't connect to net session")
metaLib = net_session.dump_lib
memory = params[2]
value = params[3]
result = metaLib.overflow(memory, value)
if not result then exit("Program ended")
if typeof(result) == "shell" then
result.start_terminal
end if
//else
//print("Error: expected shell, obtained: " + result)
//end if
if typeof(result) == "computer" then
ui = user_input("username: ")
password = result.File("/etc/passwd")
print(password)
end if
if not typeof(result) == "shell" or "computer" then
print("Error: obtained: " + result)
end if
最后由 Letha1blow 编辑于; 4 月 2 日 下午 5:16
Letha1blow 3 月 6 日 下午 3:34 
I am working on something else right now. I will fix the first one but don't use that one for the time being.
最后由 Letha1blow 编辑于; 3 月 6 日 下午 3:34
Letha1blow 4 月 2 日 下午 5:13 
Apparently they changed the programming process so I am updating the code. Still don't use #1.
最后由 Letha1blow 编辑于; 4 月 2 日 下午 5:17
Letha1blow 9 月 13 日 下午 4:02 
//uexpsys: dc (decipher)
//ver 1.01
//credit: self
//basic decipher + multiple lines can be deciphered at once
if not cryptools then exit("Error: Missing crypto library")

GetPassword = function(userPass)
if userPass.len != 2 then exit("decipher: " + file.path + " wrong syntax")
password = cryptools.decipher(userPass[1])
return password
end function

if params.len != 1 or params[0] == "-h" or params[0] == "--help" then exit(command_info("decipher_usage"))

origFile = get_abs_path(params[0])
file = get_shell.host_computer.File(origFile)
if not file then exit("decipher: can't find " + origFile)
if file.is_binary then exit("decipher: can't read " + origFile + ". Binary file")
if not file.has_permission("r") then exit("decipher: can't read file. Permission denied")
if file.get_content.len == 0 then exit("decipher: no users found")

listUsers = file.get_content.split("\n")
for line in listUsers
userPass = line.split(":")
print("Deciphering user " + userPass[0] +"...")
password = GetPassword(userPass)
if not password then
print("Nothing found...")
else
print("=> " + password)
end if
end for

if not password then exit("Can't find password :(")
print("password found! => " + password)
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50