ahnmo@peterparker:~$ cat is511.py
import socket
HOST = 'localhost'
PORT = 3000
payload = 'GET /../../../../../../../../etc/passwd HTTP/1.0\r\n\r\n'
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
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
# get strace-4.21.tar.xz from https://sourceforge.net/projects/strace/files/strace/4.21/ | |
tar -xJf strace-4.21.tar.xz | |
cd strace-4.21 | |
export STAGING_DIR=/home/user/source/staging_dir | |
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-mipsel_24kc_gcc-7.3.0_musl | |
export LDCFLAGS=$TOOLCHAIN_DIR/usr/lib | |
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib | |
export PATH=$TOOLCHAIN_DIR/bin:$PATH | |
export CC=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-gcc | |
export AS=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-as |
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 method was deprecated in API level 28 | |
// https://developer.android.com/reference/android/net/NetworkInfo | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
final ConnectivityManager connMgr = (ConnectivityManager)this.getSystemService(Context.CONNECTIVITY_SERVICE); | |
final NetworkInfo wifi = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI); | |
final NetworkInfo mobile = connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); | |
if (wifi.isConnectedOrConnecting()) { | |
output.setText("Network Type: WIFI"); |
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 socketserver import BaseRequestHandler, TCPServer | |
from socket import socket, AF_INET, SOCK_STREAM | |
from threading import Thread | |
BIND_HOST, BIND_PORT = "0.0.0.0", 22 | |
HOST, PORT = "192.168.100.5", 22 | |
def relay(fromSock, toSock): | |
while True: | |
try: |
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 KAIST PMS Blocker | |
// @namespace http://0xF.kr/ | |
// @version 0.1 | |
// @description Automatically closes PMS page | |
// @author JiminP | |
// @match http://143.248.113.1/CPopupRequest | |
// @grant none | |
// ==/UserScript== |
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
// inner closures | |
function create(i) { | |
return function () { | |
console.log(i); | |
}; | |
} | |
for (var i = 0; i < 1; i++) { | |
setTimeout(create(i), 100); | |
} |
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 BaseHTTPServer, SimpleHTTPServer | |
PORT = 8080 | |
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): | |
def do_GET(self): | |
self.send_response(200) | |
self.end_headers() | |
self.wfile.write(b'<h1 style="text-align: center">UNDER CONSTRUCTION</h1>') |
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
#!/usr/bin/env python | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
import sys | |
import os | |
PORT = 3000 | |
BASE = '..' |
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
https://developers.google.com/android/drivers#sailfishopr3.170623.013 | |
https://manatails.net/blog/2018/06/building-userdebug-android-images-for-pixel/ | |
https://source.android.com/setup/build/downloading | |
https://source.android.com/setup/build/building | |
https://source.android.com/setup/build/running | |
https://developers.google.com/android/images#sailfish | |
https://source.android.com/setup/start/build-numbers#source-code-tags-and-builds |
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
#!/usr/bin/python | |
from binascii import crc32 | |
sample_str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
target = 77236792 | |
def check(x): | |
return crc32(x) == target | |
def crack(cur, size): | |
for i in sample_str: |