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 | |
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
function Invoke-GenericWriteRBCD | |
{ | |
<# Based on Gist by dirkjan - Packed to be used from a C2 #> | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Mandatory=$True, HelpMessage="The name for the newly created computer")] | |
[string]$Computer, |
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 the necessary toolsets | |
Import-Module .\powermad.ps1 | |
Import-Module .\powerview.ps1 | |
# we are TESTLAB\attacker, who has GenericWrite rights over the primary$ computer account | |
whoami | |
# the target computer object we're taking over | |
$TargetComputer = "primary.testlab.local" |
NewerOlder