- This topic has 20 replies, 2 voices, and was last updated 4 years ago by Diego Pérez.
- AuthorPosts
- October 19, 2020 at 11:17 pm #47291AverageJoeParticipant
Hello,
Using Scapy to create ARP request. I get this message: ARP who has ?? says ??
I’ve entered all coding as per the video instructions (4.5)
import scapy.all as scapy
def scan(ip):
arp_request = scapy.ARP(pdst=ip)
print(arp_request.summary())scan(“10.0.0.1/24”)
Thanks for any help!
October 20, 2020 at 6:28 pm #47309Diego PérezModeratorHi!
Are you sure you are using the latest custom kali image provided by Zaid? It’s important!
Which scapy version are you using?Let me know.
DiegoOctober 20, 2020 at 9:07 pm #47313AverageJoeParticipantHi!,
My main OS is kali linux.
I managed to fix the issue by doing a google search, just updated scapy.
Zaids’ kali version is 2 years old, so I prefer using my version, which is up-to-date.
If I run into any more problems, I will use Zaids’ version.
Thanks for your help.
October 21, 2020 at 6:39 pm #47331Diego PérezModeratorHi!
Ok, cool you solve it.
Just to let you know, custom kali is not 2 years old, it uses Gnome for the graphic interface, which is what makes you think is old but is based on offical kali 2020.1.
Also we don’t recommend using it as main OS, actually kali was designed to be used as a virtual machine, and I mean the release by Offensive security.Greetings!
DiegoOctober 21, 2020 at 6:56 pm #47333AverageJoeParticipantHi,
Thanks for getting back to me.
I will be using Zaids’ version of kali from here on as a virtual machine.
Thanks again.
October 22, 2020 at 6:59 pm #47353Diego PérezModeratorHi!
Cool, let me know if you have any issue.Greetings!
DiegoNovember 3, 2020 at 7:14 pm #47645AverageJoeParticipantHi,
Is it normal to run network_scanner and only see one entry come up (Only the AP address/MAC are showing up)?
I tried executing netdiscover -r 10.0.2.1/24 on kali and got the same result.
Thanks!
November 3, 2020 at 7:57 pm #47646Diego PérezModeratorHi!
Is your windows VM up and running while scanning?Can you show the results of:
ifconfig and route -n in kali
ipconfig in windows
Can you share a screenshot of the Network settings used in VirtualBox for both machines?Thanks!
DiegoNovember 3, 2020 at 9:12 pm #47647AverageJoeParticipantHi,
Results of route-n and ifconfig:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.1 0.0.0.0 UG 100 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
root@kali:~#
root@kali:~#
root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fea1:50cb prefixlen 64 scopeid 0x20<link>
ether 08:00:27:a1:50:cb txqueuelen 1000 (Ethernet)
RX packets 201913 bytes 296808930 (283.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30926 bytes 2493249 (2.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 30 bytes 1696 (1.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30 bytes 1696 (1.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0root@kali:~#
Ipconfig windows:
Ipv4 address 10.0.2.4
Subnet mask 255.255.255.0
Default Gateway 10.0.21Windows VM is up and running.
Using Nat Network for both VM machines.
November 4, 2020 at 6:39 pm #47662Diego PérezModeratorHi!
Can you share a screenshot of the Network settings used in VirtualBox for both machines? It would be better if you do it, then we can check that the settings are correct and discard possible errors.Can you share your code please?
Remember to use the code button.
Thanks!
DiegoNovember 4, 2020 at 8:20 pm #47663AverageJoeParticipantHi,
I don’t understand how to use this code. I did take screenshots of Network settings for both machines. Just can’t figure out
how to insert the files in here.Sorry about that.
November 5, 2020 at 6:46 pm #47688Diego PérezModeratorHi!
It can be easier to upload the screenshots to any image hosting service and share the link here.Greetings!
DiegoNovember 5, 2020 at 8:23 pm #47691AverageJoeParticipantNovember 6, 2020 at 8:05 pm #47752Diego PérezModeratorHi!
Thanks for sharing, acording to the Network settings averything should work fine, are you able to reach kali’s web servers from windows VM machine?Start apache server with:
service apache2 startThen open any web browser in windows VM and type kali’s ip in address bar, you should see the main web page with the message “It works :)”.
Also can you share your code? Maybe use pastebin.com to share it.
Let me know how it goes!
DiegoNovember 7, 2020 at 3:45 pm #47774AverageJoeParticipantHi,
I did as instructed, start apache2, opened web browser in windows VM, typed in kali’s ip address, and received message “it works”.
Signed up with pastebin.com, copied and saved source code. pastebin.com/PhkgYBdj
Strange thing about all this, is that it did work at the beginning, received 3 or 4 ip addresses with MAC’s.
I don’t know why I am having this issue now. I checked my coding and looks the same as in the video. Maybe you
can find something I’m missing.Thanks for all your patience Diego!
- AuthorPosts
- You must be logged in to reply to this topic.