LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2019, 05:05 PM   #1
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Rep: Reputation: Disabled
Question able to ping, but unable to browse (Kali Linux 2018)


Hello,

I am trying to do a netcat to reach websites, but the responses all time out. I also tried in BurpSuite, same problem. In terminal, I am able to ping Google (8.8.8.8 and www.google.com) and other sites. I cannot browse to them, however. It doesn't appear to be DNS since pinging www.google.com worked.

maybe my route table is bad?

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 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
 
Old 01-11-2019, 05:32 PM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 972

Rep: Reputation: 259Reputation: 259Reputation: 259
Check file /etc/resolv.conf, if it looks like the one below, the nameserver is the local OS.
Code:
# Generated by NetworkManager
search localdomain
nameserver 127.0.0.53
The command: sudo service network-manager restart might change it to a local server address and you should have regular internet.
Is Kali installed or are you using it live?
 
Old 01-11-2019, 05:44 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Quote:
I cannot browse to them
Are you trying with a web browser?

In order to "reach" websites using netcat you need to understand how netcat and the http protocol work. I am unfamiliar with burp.

If you can access a website using a web browser you should be able to reach it with any application.
 
Old 01-12-2019, 07:54 AM   #4
Corvette
Member
 
Registered: Jul 2017
Location: Missouri, United States
Distribution: Debian 9
Posts: 110

Rep: Reputation: 24
Are you running it as a VM or on an actual machine? Try using
PHP Code:
traceroute 
and maybe
PHP Code:
ip address show 
and
PHP Code:
ip link show 
; it is a little hard to diagnose the issue with information, but maybe you should you have a line in your routing table with destination 0.0.0.0 and the default gateway as the gateway and vice versa?
 
Old 01-12-2019, 05:09 PM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,447

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
Quote:
Originally Posted by maddmoney View Post
I cannot browse to them, however.
What happens when you do? What error messages do you get?
 
Old 01-17-2019, 11:20 AM   #6
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Check file /etc/resolv.conf, if it looks like the one below, the nameserver is the local OS.
Code:
# Generated by NetworkManager
search localdomain
nameserver 127.0.0.53
The command: sudo service network-manager restart might change it to a local server address and you should have regular internet.
Is Kali installed or are you using it live?
I am using a Kali VM.
 
Old 01-17-2019, 11:23 AM   #7
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Corvette View Post
Are you running it as a VM or on an actual machine? Try using
PHP Code:
traceroute 
and maybe
PHP Code:
ip address show 
and
PHP Code:
ip link show 
; it is a little hard to diagnose the issue with information, but maybe you should you have a line in your routing table with destination 0.0.0.0 and the default gateway as the gateway and vice versa?

I am running the Kali instance in a VM.
 
Old 01-17-2019, 11:57 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
You didn't answer all of our questions.

Code:
Destination Gateway     Genmask       Flags Metric Ref  Use Iface
10.0.2.0    0.0.0.0   255.255.255.0     U    100     0   0   eth0
That would make sense if you are running Kali within VirtualBox using NAT mode. Did you install it from scratch or download a VirtualBox image file?
 
Old 01-17-2019, 03:20 PM   #9
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 972

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by maddmoney View Post
I am using a Kali VM.
Well, I think you should look at the address in /etc/resolv.conf being used on the host or a working VM. I just had a similar issue with a OpenMandriva VM, not sure if it's because I upgraded VMWare from version 12 to 15, or it's because I was playing in another city 250 KM from home. OpenMandriva all of sudden stopped accessing the internet also. It had an address similar to 192.168.467.2, but my Debian VM had 192.168.72.2, so changing the address in OpenMandriva to the same one Debian was using got it back online.

Last edited by Brains; 01-17-2019 at 04:17 PM. Reason: Changed address to proper address allocated by VMWare
 
Old 01-18-2019, 03:42 PM   #10
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You didn't answer all of our questions.

Code:
Destination Gateway     Genmask       Flags Metric Ref  Use Iface
10.0.2.0    0.0.0.0   255.255.255.0     U    100     0   0   eth0
That would make sense if you are running Kali within VirtualBox using NAT mode. Did you install it from scratch or download a VirtualBox image file?
I downloaded the Kali for VirtualBox image from the Offensive Security website.
 
Old 01-18-2019, 03:52 PM   #11
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by maddmoney View Post
I am using a Kali VM.
Also, when I do a cat etc/resolv.conf, this comes up:

# Generated by NetworkManager
search fios-router.home
nameserver 192.168.1.1
 
Old 01-18-2019, 03:53 PM   #12
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by maddmoney View Post
I downloaded the Kali for VirtualBox image from the Offensive Security website.
I am running it just like you said, with the Kali VM running behind NAT.
 
Old 01-18-2019, 03:58 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Quote:
I cannot browse to them
From a web browser?
 
Old 01-18-2019, 04:27 PM   #14
maddmoney
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
From a web browser?
I can get to web sites via web browser (Firefox in VM) but when I try to netcat to the same websites, nothing happens. Also, when I try to use BurpSuite in Kali to see if I can intercept my browser traffic, nothing happens. Not sure what I am doing incorrectly.
 
Old 01-18-2019, 04:44 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
So now we have gone full circle.

Your VM is working. You should be able to find some guides on the internet on using netcat for penetration testing. I am not familiar with BurpSuite and so can not offer any more help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
Not able to browse web pages, but able to ping domain names joe2748 Linux - General 2 11-03-2007 03:28 PM
Able to connect, but cannot ping or browse maverick_awp Linux - Newbie 2 05-20-2007 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration