Skip to content

Instantly share code, notes, and snippets.

@SaeedHashem
SaeedHashem / bountyscan_setup.sh
Created May 7, 2019 17:53 — forked from ResistanceIsUseless/bountyscan_setup.sh
Bug bounty environment setup with some additional tools
#!/bin/bash
#TODO: Add ncat, keybase, bookmarks, create symlinks to path
export DEBIAN_FRONTEND=noninteractive;
echo -e "\e[92m[*] Starting Install... [*]"
echo -e "\e[92m[*] Upgrade installed packages to latest [*]"
echo -e "\e[92m\nRunning a package upgrade...\n"
apt-get -qq update && apt-get -qq dist-upgrade -y
apt full-upgrade -y
apt-get autoclean
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
types {
...FullType
}
directives {
name
description
@SaeedHashem
SaeedHashem / SDES.py
Last active February 28, 2020 14:54
Rough implementation of Simplified DES encryption in python (Done for a class assignment)
from numpy import roll
import sys
def genKeys(init_key):
print('\n[*]Key Generation:')
print('\tK = {}'.format(init_key))
key_p10ed = P10(init_key)
print('\tKey, Permute 10 (P10): {}'.format(key_p10ed))
key_left = key_p10ed[0:5]
print('\tLeft Half of P10 : {}'.format(key_left))
# Reads a string until the first blank, replicates it with a blank separator
input: ' ba '
blank: ' '
start state: q0
table:
q0:
' ' : {write: ' ', R: q1}
q1:
' ' : {write: ' ', L: q7}
'a' : {write: 'X', R: q2}
name: binary increment
source code: |
# Reads a string until the first blank, replicates it with a blank separator
input: ' ba '
blank: ' '
start state: q0
table:
q0:
' ' : {write: ' ', R: q1}
q1:
# Reads a string until the first blank, replicates it with a blank separator
input: ' ba '
blank: ' '
start state: q0
table:
q0:
' ' : {write: ' ', R: q1}
q1:
' ' : {write: ' ', L: q7}
'a' : {write: 'X', R: q2}