Skip to content

Instantly share code, notes, and snippets.

View kipyegonmark's full-sized avatar

Mark Koskei kipyegonmark

View GitHub Profile
@kipyegonmark
kipyegonmark / gist:846efb1fb58b2cd67956
Created April 30, 2015 09:12
wget command to scrape pdf from a website
wget -A pdf -m -p -E -k -K -np http://site/path/
-nd flag will download to a single directory
https://www.gnu.org/software/wget/manual/wget.html
@kipyegonmark
kipyegonmark / gist:3c4a272790c22044f596
Created December 18, 2015 12:01
View/Hide hidden files on Mac OS
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app
defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app
@kipyegonmark
kipyegonmark / gist:9af52c049ee03884d8f3
Created December 18, 2015 12:25
Mac OS copy ssh public key to remote server
cat ~/.ssh/id_rsa.pub | ssh [email protected] "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"
@kipyegonmark
kipyegonmark / PS-trust-relationship-fix.md
Created January 31, 2016 10:37
Powershell fix for trust relationship error on Windows workstation

Reset-ComputerMachinePassword [-Credential ] [-Server ]

@kipyegonmark
kipyegonmark / OSX.txt
Last active January 31, 2022 15:22
Useful Mac OSX scripts
# Updating from an Internal Software Update Server
# ------------------------------------------------
# Default Settings:
# blank
# Software updates are downloaded from one of the following software update
# servers hosted by Apple:
# swscan.apple.com:80
# swquery.apple.com:80
# swcdn.apple.com:80
# Suggested Settings:
@kipyegonmark
kipyegonmark / password-root-reset.md
Created March 7, 2016 17:13
Root password reset on jailbroken iOS device
  1. open /etc/master.password
  2. generate password hash Example perl -e "print crypt($password,$salt);"
  3. change the hash for the desired user
  4. success \o/
#!/usr/bin/env python
# Mysshkey
# Version 0.0.3
# Bill Scheel <[email protected]>
# January 1, 2007
# Released under the GPL License- http://www.fsf.org/licensing/licenses/gpl.txt
#
import sys, string, glob, os, re, exceptions, traceback, pxssh, pexpect, getpass
# System Functions Do Not Touch
@kipyegonmark
kipyegonmark / squid.conf
Created March 12, 2016 16:18
Sample configuration for squid proxy server. Source here -> https://calomel.org/squid.html
#
### Calomel.org Squid squid.conf
#
########### squid.conf ###########
#
## interface, port and proxy type
#http_port 10.10.10.1:8080 transparent
http_port 10.10.10.1:8080
## general options
@kipyegonmark
kipyegonmark / gitignore-add.md
Created March 16, 2016 13:03
Adding a .gitignore to an existing repo. Source to original link -> http://monkeyhacks.com/link/adding-a-gitignore-to-an-existing-repo

First commit any outstanding code changes, and then, run this command:

git rm -r --cached

This removes everything from theindex, then just run:

git add

Commit it:

@kipyegonmark
kipyegonmark / android-apk-analysis.md
Last active October 3, 2016 08:21
This is a list of tools that I use to assess and reverse engineer Android apps

android-apk-analysis

Specialised tools

  • Android SDK
  • sqlite3
  • drozer - "Comprehensive security and attack framework for Android."
  • apktool - "A tool for reverse engineering Android apk files"
  • dex2jar - "Tools to work with android .dex and java .class files"
  • bytecode viewer - A Java reverse engineering suite