beefproject / beef

The Browser Exploitation Framework Project
https://beefproject.com
9.85k stars 2.18k forks source link

What IP do i use? #2475

Closed 6861560 closed 2 years ago

6861560 commented 2 years ago

ipconfig what ip do i use for the ? I mean for like my host too instead of just kali on my VB.

bcoles commented 2 years ago

Just pasted it in. Nothing is happening. Does it take a while to load/think?

It is usually pretty quick. Sometimes it needs to be killed and restarted. sudo killall dhclient; sudo dhclient eth0. It won't work unless you are connected to a network.

6861560 commented 2 years ago

tried the killall in terminall, nothing happened. went to root, did the same thing. it said no process found. doing dhclient eth0 did nothing. image

6861560 commented 2 years ago

Should I try not try Bridged mode? Maybe that would fix it for some reason.

bcoles commented 2 years ago

Should I try not try Bridged mode? Maybe that would fix it for some reason.

It looks like dhclient worked. Did you get a IPv4 address?

6861560 commented 2 years ago

Should I try not try Bridged mode? Maybe that would fix it for some reason.

It looks like dhclient worked. Did you get a IPv4 address?

No. It just did nothing for about 30 secs-1 min and just went onto a new line.

bcoles commented 2 years ago

Should I try not try Bridged mode? Maybe that would fix it for some reason.

It looks like dhclient worked. Did you get a IPv4 address?

No. It just did nothing for about 30 secs-1 min and just went onto a new line.

Did you get a new IPv4 address?

6861560 commented 2 years ago

Dont see anything new in ifconfig.

Should I try not try Bridged mode? Maybe that would fix it for some reason.

It looks like dhclient worked. Did you get a IPv4 address?

No. It just did nothing for about 30 secs-1 min and just went onto a new line.

Did you get a new IPv4 address?

bcoles commented 2 years ago

Dont see anything new in ifconfig.

BeEF does not support IPv6. You will need a network interface configured with an IPv4 address.

6861560 commented 2 years ago

https://user-images.githubusercontent.com/107905536/176250134-df5c1fb9-2a94-44dc-b3e4-7cb4c112021a.mp4

6861560 commented 2 years ago

Dont see anything new in ifconfig.

BeEF does not support IPv6. You will need a network interface configured with an IPv4 address.

Yes. But There is no IPv4 on my kali linux.

bcoles commented 2 years ago

Yes. But There is no IPv4 on my kali linux.

Is your host system connected to a network? The network icon in your task bar is showing as disconnected.

6861560 commented 2 years ago

My Windows Host is working fine. When i try bridged mode it comes up ethernet disconnected. I do have a ethernet cable hanging from my pc though but I have unplugged it, restarted the VB. Still the same thing I think this is what you mean.

bcoles commented 2 years ago

My Windows Host is working fine. When i try bridged mode it comes up ethernet disconnected. I do have a ethernet cable hanging from my pc though but I have unplugged it, restarted the VB. Still the same thing I think this is what you mean.

Is your Windows host connected to a LAN or WiFi network?

6861560 commented 2 years ago

It is connected to my router.

6861560 commented 2 years ago

My Windows Host is working fine. When i try bridged mode it comes up ethernet disconnected. I do have a ethernet cable hanging from my pc though but I have unplugged it, restarted the VB. Still the same thing I think this is what you mean.

Is your Windows host connected to a LAN or WiFi network?

the disconnected icon has been there since I did it as bridged mode.

bcoles commented 2 years ago

It is connected to my router.

Great. See if you can get a DHCP lease from your router on your Kali host.

6861560 commented 2 years ago

It is connected to my router.

Great. See if you can get a DHCP lease from your router on your Kali host.

Do I just use the same sudo dhclient eth0 command?

bcoles commented 2 years ago

It is connected to my router.

Great. See if you can get a DHCP lease from your router on your Kali host.

Do I just use the same sudo dhclient eth0 command?

Do whatever you need to do.

Your issue is related to your network configuration. You will not be able to use BeEF until you can route network traffic to your Kali host.

6861560 commented 2 years ago

Ok. I did ipconfig /all and it shows the DHCP IS DISABLED when it shows Ethernet adapter VirtualBox Host-Only Network How do i enable it?

bcoles commented 2 years ago

Ok. I did ipconfig /all and it shows the DHCP IS DISABLED when it shows Ethernet adapter VirtualBox Host-Only Network How do i enable it?

That interface is Host-Only. Presumably Virtual Box has other network adapters.

6861560 commented 2 years ago

That interface is Host-Only. Presumably Virtual Box has other network adapters. image

These are the options.

bcoles commented 2 years ago

These are the options.

You likely have multiple network adapters on your Windows host. Several of these are likely to belong to Virtual Box. Of these, one is your Virtual Box host only adapter.

6861560 commented 2 years ago

Ethernet adapter Bluetooth Network Connection DHCP Enabled: Yes Wireless LAN adapter Wi-Fi: DHCP Enabled: Yes Wireless LAN adapter Local Area Connection* 4: DHCP Enabled: Yes Wireless LAN adapter Local Area Connection* 3: DHCP Enabled: Yes Unknown adapter Local Area Connection: DHCP Enabled: Yes Ethernet adapter VirtualBox Host-Only Network: DHCP Enabled: No Unknown adapter Local Area Connection 2: DHCP Enabled: No Ethernet adapter Ethernet 2: DHCP Enabled: Yes Ethernet adapter Ethernet: DHCP Enabled: Yes Does ANY of these trigger as to why its not working?

6861560 commented 2 years ago

These are the options.

Of these, one is your Virtual Box host only adapter. Its Probably Host-Only Adapter. Should I put that one on are leaved it at bridged still?

bcoles commented 2 years ago

Does ANY of these trigger as to why its not working?

You only have one Virtual Box network adapter and it is Host-Only. That doesn't seem right. Perhaps some of the others belong to Virtual Box too.

You could try changing the Virtual Box network adapter from Bridged to Host-Only.

6861560 commented 2 years ago

Does ANY of these trigger as to why its not working?

You only have one Virtual Box network adapter and it is Host-Only. That doesn't seem right. Perhaps some of the others belong to Virtual Box too.

You could try changing the Virtual Box network adapter from Bridged to Host-Only.

Will Do.

6861560 commented 2 years ago

Whoa. I just saw coding before the start-up. I dont know if thats a good or bad sign

6861560 commented 2 years ago

Ok. I tried the sudo dhclient eth0. IMMEDIATLY went to the next line and did nothing. This is probably because it says DHCP is not enabled. Do you know how to enable it?

bcoles commented 2 years ago

Ok. I tried the sudo dhclient eth0. IMMEDIATLY went to the next line and did nothing. This is probably because it says DHCP is not enabled. Do you know how to enable it?

That's not what that means.

And that should not have been necessary. You should have already received an IPv4 address. Do you have an IPv4 address?

6861560 commented 2 years ago

Ok. I tried the sudo dhclient eth0. IMMEDIATLY went to the next line and did nothing. This is probably because it says DHCP is not enabled. Do you know how to enable it?

That's not what that means.

And that should not have been necessary. You should have already received an IPv4 address. Do you have an IPv4 address?

I went into the host network manager, and it shows me a IPv4. so i will try that one out

6861560 commented 2 years ago

Ok. I tried the sudo dhclient eth0. IMMEDIATLY went to the next line and did nothing. This is probably because it says DHCP is not enabled. Do you know how to enable it?

That's not what that means.

And that should not have been necessary. You should have already received an IPv4 address. Do you have an IPv4 address?

But no. dhclient did not work at all.

bcoles commented 2 years ago

But no. dhclient did not work at all.

dhclient does not produce output when it works. You don't need to run dhclient. You already have an IPv4 address.

6861560 commented 2 years ago

If Dhclient does not produce a output, then where can i find the ip address?

6861560 commented 2 years ago

Oh, i see a broadcast ipv4 xd

6861560 commented 2 years ago

oh. just as a pasted the ip in the :1337, the netcat popped up.

bcoles commented 2 years ago

If Dhclient does not produce a output, then where can i find the ip address?

ifconfig

Oh, i see a broadcast ipv4 xd

That is the broadcast address.

oh. just as a pasted the ip in the :1337, the netcat popped up.

I don't know what that means, but you don't need to post every step of the way. Perform troubleshooting. Post when you get stuck.

6861560 commented 2 years ago

Ok. Thank you so much though! I would be stuck for a month if it wasn't for you!