mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Preparations for async commands
This commit is contained in:
parent
fc562f2a2f
commit
c6bd66559a
7 changed files with 42 additions and 13 deletions
scripts
15
scripts/better-reverse-shell
Normal file
15
scripts/better-reverse-shell
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/env/perl
|
||||
|
||||
use Socket;
|
||||
|
||||
$ip="127.0.0.1";
|
||||
$port=6666;
|
||||
|
||||
socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));
|
||||
|
||||
if(connect(S,sockaddr_in($port,inet_aton($ip)))){
|
||||
open(STDIN,">&S");
|
||||
open(STDOUT,">&S");
|
||||
open(STDERR,">&S");
|
||||
exec("python -c 'import pty; pty.spawn([\"/bin/bash\", \"--noprofile\", \"--norc\"])'")
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue