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 python3 | |
import argparse | |
import dataclasses | |
import datetime | |
import os | |
import subprocess | |
import tarfile | |
import tempfile | |
from collections.abc import Generator |
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 getLabId() { | |
return /\d+$/.exec(location.pathname)[0] | |
} | |
async function getActivity() { | |
const lab_id = getLabId(); | |
let page = 1; | |
let data = await (await fetch(`https://enterprise.hackthebox.com/api/v1/product/labs/${lab_id}/activity?page=${page}`)).json(); | |
const activities = data.data; | |
for (page++; page <= data.meta.last_page; page++) { |
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 | |
style='paraiso-dark' | |
lang='' | |
preview='' | |
options='' | |
while getopts 's:l:po:' opt; | |
do | |
case $opt in |
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 | |
# -*- coding: utf-8 -*- | |
# author: Timo Schmid | |
# copyright: 2016 | |
""" | |
Script to demonstrate different cipher modes | |
with based on an image | |
""" | |
from __future__ import print_function | |
import sys |
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 python2 | |
# encoding: utf-8 | |
from M2Crypto import X509, EVP, RSA, m2 | |
import sys | |
import argparse | |
def clone_to_req(crt, *args): | |
req = X509.Request() | |
req.set_version(crt.get_version()) |
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
# -*- coding: utf-8 -*- | |
import socket | |
import os | |
# backup original function | |
_socket = socket.socket | |
class SocketProxyWrapper: | |
def __init__(self, socket, proxy): |
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
/* | |
nfc_creditcard_reader by Jose Miguel Esparza (jesparza AT eternal-todo.com) | |
http://eternal-todo.com | |
Based on the PoC readnfccc by Renaud Lifchitz ([email protected]) | |
Fixed to work with libnfc 1.7.4 by bluec0re | |
License: distributed under GPL version 3 (http://www.gnu.org/licenses/gpl.html) |
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 | |
# enables reverse tether on android phones | |
# requires networkmanager | |
# tested & developed with CM12 (Android 5.1.1) | |
ADB=adb | |
# get by nmcli list | |
NM_CONN="048202e0-a62c-431b-8fc1-cf8fd552343e" | |
# the rndis device on your phone (adb shell ip link) | |
IF=usb0 |
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 python2 | |
# encoding: utf-8 | |
import cv2 | |
import cv | |
import sys | |
video = cv2.VideoCapture("input.webm") | |
fps = video.get(cv.CV_CAP_PROP_FPS) / 2 |
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 absolute_import, print_function, unicode_literals | |
import jinja2 | |
from lxml import etree, html | |
from lxml.html import clean | |
import logging | |
import sys | |
import zipfile | |
from preprocess import preprocess | |
import json |
NewerOlder