mirror of
https://github.com/nmap/nmap.git
synced 2026-06-12 02:56:23 +00:00
Revert r19975, wrong external.
This commit is contained in:
parent
611cc22676
commit
11e70075fa
1 changed files with 0 additions and 17 deletions
|
|
@ -154,23 +154,6 @@ void set_hostinfo(lua_State *L, Target *currenths) {
|
|||
|
||||
FingerPrintResults *FPR = currenths->FPR;
|
||||
|
||||
/* add distance (in hops) if traceroute has been performed */
|
||||
if (currenths->traceroute_hops.size() > 0) {
|
||||
int i;
|
||||
std::list<TracerouteHop>::iterator it;
|
||||
|
||||
lua_newtable(L);
|
||||
|
||||
for (i=0, it=currenths->traceroute_hops.begin();
|
||||
it!=currenths->traceroute_hops.end(); i++, it++) {
|
||||
|
||||
lua_pushstring(L, inet_ntop_ez(&(*it).addr, sizeof((*it).addr)));
|
||||
lua_rawseti(L, -2, i+1);
|
||||
}
|
||||
lua_setfield(L, -2, "traceroute");
|
||||
}
|
||||
|
||||
|
||||
/* if there has been an os scan which returned a pretty certain
|
||||
* result, we will use it in the scripts
|
||||
* matches which aren't perfect are not needed in the scripts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue