mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Updates scripts to work with the new version of the TN3270 library. Closes #1078.
This commit is contained in:
@@ -316,7 +316,7 @@ local function cics_test( host, port, commands, user, pass )
|
|||||||
end
|
end
|
||||||
tn:get_screen_debug(2)
|
tn:get_screen_debug(2)
|
||||||
|
|
||||||
if tn:find('Sign-off is complete.') then
|
if tn:find('off is complete.') then
|
||||||
cics = true
|
cics = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ local function cics_info( host, port, commands, user, pass, cemt, trans )
|
|||||||
end
|
end
|
||||||
tn:get_screen_debug(2)
|
tn:get_screen_debug(2)
|
||||||
|
|
||||||
if not tn:find('Sign-off is complete.') then
|
if not tn:find('off is complete.') then
|
||||||
return false, 'Unable to get to CICS. Try --script-args cics-info.commands="logon applid(<applid>)"'
|
return false, 'Unable to get to CICS. Try --script-args cics-info.commands="logon applid(<applid>)"'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ Driver = {
|
|||||||
self.tn3270:get_all_data()
|
self.tn3270:get_all_data()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.tn3270:find("***") then -- For ACF2/TopSecret if required
|
if self.tn3270:find("%*%*%*") then -- For ACF2/TopSecret if required
|
||||||
self.tn3270:send_enter()
|
self.tn3270:send_enter()
|
||||||
self.tn3270:get_all_data()
|
self.tn3270:get_all_data()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ Driver = {
|
|||||||
self.tn3270:get_all_data()
|
self.tn3270:get_all_data()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.tn3270:find("***") then
|
if self.tn3270:find("%*%*%*") then
|
||||||
self.tn3270:send_enter()
|
self.tn3270:send_enter()
|
||||||
self.tn3270:get_all_data()
|
self.tn3270:get_all_data()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user