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
| PASSPHRASE=$1 | |
| DEST_KEY_ID=$2 | |
| PASS_DIR="pass" | |
| function convert { | |
| file="$1" | |
| gpg --passphrase $PASSPHRASE --decrypt "$file" > "$file.dec" | |
| gpg --encrypt --armor -r $DESK_KEY_ID --output "$file.enc" "$file.dec" |
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 pwn import * | |
| def shellcode(): | |
| pad = 'A'*24 | |
| pad += p64(0x007fffffffdc20) # override RIP with middle of nop slide | |
| s = "" | |
| # s += shellcraft.amd64.nop() * 500 | |
| s += shellcraft.amd64.mov('edx', 0) | |
| s += shellcraft.amd64.mov('esi', 0) |
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
| c | |
| PY=$(which python3) | |
| VERSION="gdb-9.1" | |
| wget https://ftp.gnu.org/gnu/gdb/$VERSION.tar.gz | |
| tar -xzf $VERSION.tar.gz | |
| cd $VERSION | |
| DIR=$(PWD) | |
| mkdir build && cd build |
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 cv2 | |
| import os | |
| import os.path | |
| def main(): | |
| hog = HOG() | |
| haar = HAAR() | |
| folder = "../images/full/" | |
| for p in os.listdir(folder): |
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 imutils.object_detection import non_max_suppression | |
| from imutils import paths | |
| import imutils | |
| import cv2 | |
| def main(): | |
| # initialize the HOG descriptor/person detector | |
| hog = cv2.HOGDescriptor() | |
| hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) |
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
| print "" | |
| print "===========================" | |
| print "" | |
| MAX_GOBACK = 30 | |
| def find_memcpy_import(addr, name, c): | |
| if name.startswith("memcpy"): | |
| print "addr 0x%x name %s" %(addr, name) | |
| for x in XrefsTo(addr): |
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
| videos_number = 0 | |
| endpoints_number = 0 | |
| requests_number = 0 | |
| caches_number = 0 | |
| caches_size = 0 | |
| DATACENTER_LATENCY = 'datacenter_latnecy' | |
| NUMBER_OF_REQUESTS = 'requests_num' | |
| VIDEO = 'video' | |
| ENDPOINT = 'endpoint' |
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
| """ | |
| Thread-safe lock mechanism with timeout support module. | |
| """ | |
| from threading import ThreadError, current_thread | |
| from Queue import Queue, Full, Empty | |
| class TimeoutLock(object): | |
| """ |
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
| <?php | |
| class MY_Lang_detector { | |
| const MAX_WORDS_TO_CHECK = 50; | |
| public function __construct() | |
| { | |
| $this->languages = $this->getLangs(); | |
| } |
NewerOlder