import_code("/root/CryptLib") if params.len < 2 or params.len > 3 then exit(command_info("ssh_usage")) credentials = params[0].split("@") user = credentials[0] password = credentials[1] port = 22 // params is a list of strings, so you have to convert it to integer, which is what connect_service accepts. if params.len == 3 then port = params[2].to_int if typeof(port) != "number" then exit("Invalid port: " + port) print("Connecting...") shell = get_shell.connect_service(params[1], port, user, password, "ssh") if typeof(shell) == "string" then exit(shell) if shell then encrypt=function(pass,secret,type) cryptChars=function(pass) if typeof(pass) == "string" then newList=[] for chr in pass newList.push(bitwise("^",chr.code,key)) end for return newList.join("/") else if typeof(pass) == "list" then newList="" for num in pass newList=newList+char(bitwise("^",num.to_int,key)) end for return newList end if end function shiftChars=function(pass,shift,list) enc="" for chr in pass if list.indexOf(chr) == null then continue newChar=shift[list.indexOf(chr)] enc=enc+newChar end for return enc end function allowedChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/_.@=!#$%^&*()-+|?<>" shiftedChars="Cy|=a+!@z^M7rmg*BUh(Ne-5tV8dTq?$u4vo1>kWxJpARLcKSb320%EQH6