Returns localhost for private class A IP addresses #3

Open
opened 2026-09-29 05:55:14 -05:00 by agrecalypse · 0 comments
agrecalypse commented 2026-09-29 05:55:14 -05:00 (Migrated from github.com)

serve.py is only looking for ip addresses starting with 192.168. Other addresses will return localhost.

for ip in re.findall(r"IPv4[^:]*:\s*([\d.]+)", output):
     if ip.startswith("192.168."):
        return ip

return "localhost"`
serve.py is only looking for ip addresses starting with 192.168. Other addresses will return localhost. for ip in re.findall(r"IPv4[^:]*:\s*([\d.]+)", output): if ip.startswith("192.168."): return ip return "localhost"`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ntfargo/Relapse-Exploit#3
No description provided.