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 argparse | |
import time | |
from binascii import hexlify | |
def generate_array(n_params): | |
# Basic array structure | |
proc_string = [ | |
0x32, # FC_BIND_PRIMITIVE | |
0x48, # Old Flags: |
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
#!/usr/bin/env python3 | |
# ====================================== | |
# Requires the following deps: | |
# pip install xmltodict, requests, bs4 | |
# ====================================== | |
from argparse import ArgumentParser | |
from pathlib import Path | |
import requests | |
import zipfile |
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 | |
# Create a timestamp | |
ts="$(date +%Y%m%d)" | |
# Determine running directory | |
cwd="$(pwd $(dirname $0))" | |
# Define build_file | |
build_file= |
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/sh | |
# Default values | |
input_apk="" | |
signer_path="" | |
# Function to display help message | |
print_help() { | |
echo "Usage: $0 -i <input_apk> [-s <signer_path>]" | |
echo "" |
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 gf_mul_by_09(num): | |
ret = gf_mul_by_02(gf_mul_by_02(gf_mul_by_02(num))) ^ num | |
return ret | |
def gf_mul_by_0b(num): | |
ret = gf_mul_by_02(gf_mul_by_02(gf_mul_by_02(num))) ^ gf_mul_by_02(num) ^ num | |
return ret |
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
Option Explicit | |
Sub AddElements() | |
Dim shp As Shape | |
Dim i As Integer, n As Integer | |
n = ActivePresentation.Slides.Count | |
For i = 1 To n | |
Dim s As Slide | |
Set s = ActivePresentation.Slides(i) |
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
xcodebuild | |
-exportArchive | |
-exportOptionsPlist {PATH_TO_PROJECT_ROOT}/ios/build/info.plist | |
-archivePath {PATH_TO_ARCHIVE_MADE_USING_XCODE}/App.xcarchive | |
-exportPath {PATH_TO_EXPORT_THE_APP}/App.ipa |
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 frida | |
import sys | |
import subprocess | |
import ctypes | |
import threading | |
import multiprocessing | |
import argparse | |
def inject_dummy(): |
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
class RLGlue: | |
"""RLGlue class | |
args: | |
env_name (string): the name of the module where the Environment class can be found | |
agent_name (string): the name of the module where the Agent class can be found | |
""" | |
def __init__(self, env_class, agent_class): | |
self.environment = env_class() | |
self.agent = agent_class() |
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
# -*- coding: utf-8 -*- | |
import scrapy | |
import argparse | |
import re | |
from scrapy import signals | |
from scrapy.spiders import CrawlSpider, Rule | |
from scrapy.linkextractors import LinkExtractor | |
from scrapy.crawler import CrawlerProcess |
NewerOlder