Skip to content

Instantly share code, notes, and snippets.

@gmassawe
gmassawe / keybase.md
Created August 8, 2016 05:11
keybase verify

Keybase proof

I hereby claim:

  • I am gmassawe on github.
  • I am gmassawe (https://keybase.io/gmassawe) on keybase.
  • I have a public key ASCJL2kAGnJa87jApVjSz9XKD8leCdmAopqGCsm2e0HuyAo

To claim this, I am signing this object:

@gmassawe
gmassawe / metawin.txt
Last active April 12, 2017 15:49
install metasploit on windows 10 subsystem for linux
Enable Windows Subsystem for Linux
/mnt/c$ curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
@gmassawe
gmassawe / snakeoilcertgen.txt
Created March 16, 2018 13:19
Generate New SnakeOil Cert - Ubuntu
#sudo make-ssl-cert generate-default-snakeoil --force-overwrite
locations:
/etc/ssl/certs/ssl-cert-snakeoil.pem
/etc/ssl/private/ssl-cert-snakeoil.key
@gmassawe
gmassawe / win_block_p137.txt
Last active April 22, 2018 16:34
Windows - Firewall
netsh advfirewall firewall add rule dir=in action=block protocol=UDP localport=137 name="Block_UDP-137"
@gmassawe
gmassawe / checkfile.ps1
Last active May 13, 2018 19:26
PowerShell script to check file change date/time then email using Office365
<#
.SYNOPSIS
Script to check file change date and time
.NOTES
Version: 1.0
Author: George Massawe
Creation Date: 03/18/2018
Purpose/Change: Initial script development
#>
@gmassawe
gmassawe / fix-permissions.sh
Created April 24, 2018 20:06
Drupal Permissions Fix
#!/bin/bash
# Help menu
print_help() {
cat <<-HELP
This script is used to fix permissions of a Drupal installation
you need to provide the following arguments:
1) Path to your Drupal installation.
2) Username of the user that you want to give files/directories ownership.
@gmassawe
gmassawe / drupal.txt
Last active April 24, 2018 21:12
Drupal Permissions
Core
====
Directories
-----------
modules, themes
Ownership
@gmassawe
gmassawe / asa.txt
Created May 13, 2018 19:18
How to reset Cisco ASA`s configuration to factory default
How to clear an ASA`s configuration
====================================
1. Reboot the device
2. On boot hit `escape` so that you break the normal startup process and enter
ROMMON.
3. Change the current confreg so that you can bypass the current startup config
sing the command:
@gmassawe
gmassawe / mysqlroot.txt
Created August 6, 2018 19:41
change mySQL root password
Change MySQL root password on Ubuntu Server
============================================
~$ sudo service mysql stop
~$ sudo mysqld_safe --skip-grant-tables &
~$ sudo mysql -u root
> use mysql;
@gmassawe
gmassawe / vncserver.md
Last active August 8, 2018 15:31
Start VNC at boot

Starting VNC at boot

sudo apt-get install tightvncserver
vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565
  • Set password for access (optional)
sudo nano /etc/init.d/tightvncserver