This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Loads libs from /lib or from /home/[active_user] | |
// Tests if metaxploit is in lib | |
globals.metaxploit = include_lib("/lib/metaxploit.so") | |
// checks if metaxploit is in /home/active-user | |
if not globals.metaxploit then globals.metaxploit = include_lib(home_dir + "/metaxploit.so") | |
if not globals.metaxploit then exit("<color=#ff0000>Load metaxploit on either lib or home_dir</color>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Loads libs from /lib or from /home/[active_user] | |
// Tests if metaxploit is in lib | |
globals.crypto = include_lib("/lib/crypto.so") | |
// checks if metaxploit is in /home/active-user | |
if not globals.crypto then globals.crypto = include_lib(home_dir + "/crypto.so") | |
if not globals.crypto then exit("<color=#ff0000>Load crypto on either lib or home_dir</color>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import_code("/home/tjmonsi/scripts/lib/paramsparser.src") | |
import_code("/home/tjmonsi/scripts/lib/metaxploitscan.src") | |
config = tjx_params_parser(program_path.split("/")[-1], ["public_ip", "port_number"], 1) | |
publicIp = config.public_ip | |
portNumber = null | |
if config.hasIndex("port_number") then portNumber = config.port_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import_code("/home/tjmonsi/scripts/lib/paramsparser.src") | |
import_code("/home/tjmonsi/scripts/lib/findindex.src") | |
import_code("/home/tjmonsi/scripts/lib/scanrouter.src") | |
import_code("/home/tjmonsi/scripts/lib/metaxploitscan.src") | |
config = tjx_params_parser(program_path.split("/")[-1], ["target_ip"], 1) | |
target_ip = null | |
if config.hasIndex("target_ip") then target_ip = config.target_ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tjx_metaxploit_scan = function (ip, port) | |
content = [] | |
printText = function (text) | |
print(text) | |
content = content.push(text) | |
end function | |
metaxploit = include_lib("/lib/metaxploit.so") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: tjx_connect_network("wlan0") | |
tjx_connect_network = function (network_device) | |
crypto = include_lib("/lib/crypto.so") | |
if not crypto then exit("Cannot find crypto.so in /lib") | |
computer = get_shell.host_computer | |
crypto.airmon("start", network_device) | |
networks = computer.wifi_networks(network_device) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: tjx_params_parser("myprogram", ["ip_address", "port", "memory"], 1) | |
// params: | |
// - cmd: the string of your command | |
// - variableList: the list of variables you want to get | |
// - optional: the number of optional variables starting from the end of the array | |
// - description: the description of usage | |
tjx_params_parser = function (cmd, variableList, optional, description) | |
if not description or not description isa string then | |
description = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tjx_print_decipher = function (text) | |
crypto = globals.crypto | |
items = [] | |
if not crypto then exit("Cannot find crypto.so") | |
if not text then | |
print("No text to decipher") | |
return items | |
end if | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: | |
// tjx_get_etc_passwd(file) | |
// parameters: file is type File | |
tjx_get_etc_passwd = function(file) | |
print("Starting search at: " + file.path) | |
_gotoroot = function(folder) | |
if folder.parent then | |
return _gotoroot(folder.parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: | |
// import_code("path/to/findindex.src") | |
// list = [item, item, item] | |
// somefunction = function (item, value) | |
// return item.something == value | |
// end function | |
// | |
// index = find_index(list, value, @somefunction) | |
find_index = function (list, value, fn) |
NewerOlder