1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 13:04:28 +01:00

Added a portscan example. It's kind of nasty, but works.

This commit is contained in:
Matias Fontanini
2011-08-19 00:07:41 -03:00
parent a690f0db98
commit 3a751848a8
6 changed files with 232 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ int do_arp_spoofing(uint32_t iface, const string &iface_name, uint32_t gw, uint3
}
int main(int argc, char *argv[]) {
if(argc < 3 && cout << "Usage: <Gateway> <Victim> [Interface=eth0]\n")
if(argc < 3 && cout << "Usage: " << *argv << " <Gateway> <Victim> [Interface=eth0]\n")
return 1;
uint32_t gw, victim, own_ip;
uint8_t own_hw[6];