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
sudo apt install python3-pip | |
pip3 install setuptools wheel | |
pip3 install pyaml | |
# Download the python script from this GIST |
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
cutter() { | |
local CONFDIR="${HOME}/.config/radare2" | |
mkdir -p "${CONFDIR}" | |
touch ${CONFDIR}/radare2rc | |
mkdir -p ${CONFDIR}/r2-config | |
xhost +local:docker && \ | |
docker run \ | |
--rm \ | |
-it \ | |
--name cutter \ |
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
// Emacs mode hint: -*- mode: JavaScript -*- | |
function Controller() { | |
installer.autoRejectMessageBoxes(); | |
installer.installationFinished.connect(function() { | |
gui.clickButton(buttons.NextButton); | |
}) | |
} | |
Controller.prototype.WelcomePageCallback = function() { |
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
# Bash Golf example that gets the WPA-PSK key from the WiFi network you are currently connected to. | |
# Beyond the basics (cut & grep) it uses network manager's CLI and python3 | |
c='cut -d: -f2';g=grep;a=$(nmcli -t -f ACTIVE,SSID d w l|$g -E "^yes:"|$c);p=$(nmcli -s -t c show $a|$g psk:|$c);python3 -c "from hashlib import pbkdf2_hmac as p; from binascii import hexlify as h;print('PSK',h(p('sha1', b'$p', b'$a', 4096, dklen=32)).decode('ascii'))" |
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
""" | |
For use with python3. | |
Usage: Download and save this script in your project folder. | |
In the script: | |
from incap import IncapSession as Session | |
session = Session() | |
response = session.get('https://www.url.com') |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Annotations start="0" num="126" total="126"> | |
<Annotation about="blog.malwaremustdie.org/*" timestamp="0x0005408aeb576862" href="ChlibG9nLm1hbHdhcmVtdXN0ZGllLm9yZy8qEOLQ3dqukdAC"> | |
<Label name="_cse_turlh5vi4xc" /> | |
<AdditionalData attribute="original_url" value="http://blog.malwaremustdie.org/" /> | |
</Annotation> | |
<Annotation about="blog.airbuscybersecurity.com/*" timestamp="0x0005408aea73fd53" href="Ch5ibG9nLmFpcmJ1c2N5YmVyc2VjdXJpdHkuY29tLyoQ0_rP066R0AI"> | |
<Label name="_cse_turlh5vi4xc" /> | |
<AdditionalData attribute="original_url" value="http://blog.airbuscybersecurity.com/" /> | |
</Annotation> |
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 | |
# -*- coding: utf-8 -*- | |
# | |
# This file is part of a simple script that checks the osint framework for malicious urls | |
# Copyright © 2017 seamus tuohy, <code@seamustuohy.com> | |
# | |
# This program is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) | |
# any later version. |
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
# Based off of the old Google Analytics Host Lookup module by Micah Hoffman (@WebBreacher) | |
# https://bitbucket.org/LaNMaSteR53/recon-ng/src/6f7d35c5b8e1c114288dc4e1d91d565e29c0342c/modules/recon/hosts/enum/http/web/google_analytics.py?at=master&fileviewer=file-view-default | |
from recon.core.module import BaseModule | |
import re | |
class Module(BaseModule): | |
meta = { | |
'Name': 'Google Analytics Host Lookup', | |
'Author': 'Seamus Tuohy (@seamustuohy)', |
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
# List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
# Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
# Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(valuelist)] |
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 python | |
#Original Code | |
#https://github.com/winter-muted/moose/blob/399aefb8d7d62e0163045b39803a2d791ada04f9/scripts/github_traffic.py | |
# For automated logging: | |
# python github_traffic.py --log --user [USERNAME] --password [PASSWORD] | |
import cookielib | |
import sys, os, time, argparse, getpass, re, datetime, csv |