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.
Last edited by Letha1blow; 2 Mar @ 12:57pm
< >
Showing 1-5 of 5 comments
//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
Last edited by Letha1blow; 6 Mar @ 3:21pm
//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")
Last edited by Letha1blow; 6 Mar @ 3:20pm
//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
Last edited by Letha1blow; 2 Apr @ 5:16pm
I am working on something else right now. I will fix the first one but don't use that one for the time being.
Last edited by Letha1blow; 6 Mar @ 3:34pm
Apparently they changed the programming process so I am updating the code. Still don't use #1.
Last edited by Letha1blow; 2 Apr @ 5:17pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50