-
Go to https://archive.org/web/
-
Navigate to the deleted repo, e.g. https://web.archive.org/web/*/https://github.com/0x48piraj/CVE-2019-14339
-
Copy latest known commit sha1 signature
This file contains 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 | |
import json | |
import os | |
from socket import ( | |
socket, | |
AF_INET, | |
SOCK_STREAM, | |
SO_REUSEADDR, | |
SOL_SOCKET | |
) |
This file contains 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
def citup(lst): | |
""" | |
chunk-it-up: break a list into n-sized chunks | |
""" | |
return [lst[i:i+n] for i in range(0, len(lst), n)] | |
mixedlol = [["a", 500, datetime.datetime], ["b", 1000, datetime.datetime], ["C", 1500, datetime.datetime]] # list of lists | |
def hoelol(mixedlol): |
This file contains 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
mountvol S: /S | |
S: | |
cd .\EFI\ | |
dir | |
rd /S Ubuntu |
This file contains 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
/* | |
usage: ASCIIAnimation(param1, param2, param3) | |
param1 - array of animation 'frames' (strings) | |
param2 - speed of animation in ms | |
usage: | |
var anim = new ASCIIAnimation([":)",":|",":("], 100); | |
*/ |
This file contains 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
find ./ -not -path "./.git/*" -type f -exec wc -l {} + | | |
awk '{print tolower($0)}' | | |
sed -e '$ d' | | |
sed -e "s#/.*/##g" | | |
sed -e "s/\./ \./g" | | |
awk ' | |
{ if ( NF <= 2 ) { count["none"] += $1 } else { count[$NF] += $1 } } | |
{ next } | |
END { for (group in count) printf("%d%s%s\n", count[group], OFS, group) } | |
' | |
This file contains 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 | |
tr 'A-Z' 'a-z' < $2 | tr 'a-z' $( echo {a..z} | sed -r 's/ //g' | sed -r "s/(.{$1})(.*)/\2\1/" ) |
This file contains 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 socket | |
import subprocess | |
# Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means all interfaces) | |
server_socket = socket.socket() | |
server_socket.bind(('0.0.0.0', 8000)) | |
server_socket.listen(0) | |
# Accept a single connection and make a file-like object out of it | |
connection = server_socket.accept()[0].makefile('rb') |
This file contains 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 io | |
import socket | |
import struct | |
from PIL import Image | |
# Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means all interfaces) | |
server_socket = socket.socket() | |
server_socket.bind(('0.0.0.0', 8000)) | |
server_socket.listen(0) |
NewerOlder