Skip to content

Instantly share code, notes, and snippets.

View jasonadsit's full-sized avatar

Jason Adsit jasonadsit

View GitHub Profile
@jasonadsit
jasonadsit / Get-DellDriverCabs.ps1
Last active November 5, 2016 21:49
Get download links for Dell driver CABs for Windows 10
function Get-DellDriverCabs {
[cmdletbinding()]
Param (
[string] $OutCabArchive = $($env:TEMP + '\DriverPackCatalog.cab'),
[string] $OutFile = $($env:TEMP + '\DriverPackCatalog.xml'),
@jasonadsit
jasonadsit / update-esxi-esxcli.txt
Last active November 22, 2016 03:14
Update ESXi to latest version via esxcli
esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile install --ok-to-remove -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-4564106-standard
reboot
esxcli network firewall ruleset set -e false -r httpClient
$1337h4x0r = $True
$ErrorActionPreference = 'Stop'
while ($1337h4x0r -eq $True) {
if (!(Get-WinEvent -ListProvider 'CAC-Exempt Script' -ErrorAction SilentlyContinue)) {
New-EventLog -LogName Application -Source 'CAC-Exempt Script'
} # if
#!/bin/sh
## remove license
echo 'Removing License'
rm -r /etc/vmware/license.cfg
## get a new trial license
echo 'Copying new license'
cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg
## restart services
echo 'Restarting VPXA'
/etc/init.d/vpxa restart
@jasonadsit
jasonadsit / id_rsa.pub
Created March 14, 2017 18:30
My Public SSH Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnApbPtjFcS4/TMT8H2IlFI3KxwURXbwj0CAuijo5ClYCG8rHW0zq2DHMortpLYEG2ey0nJ03icGgQbCtySbD76rGH0dbhfrnvprxRFImH+8h+c4U/Tf0hwY0NLc5R/h2ClzefQPNyL0SQKLnWu3eYYi1/unqWAMIwVs8MS0w0uPkBwvtfR1GynI1Rkad0T/5glMPH+JfcDE3hak41FgQ5ju9iuZxjlNCGsocNpGM3mW5FIEg//wZsshwhLGzX8aZTiuLPurF4SujX09EbZuPB7kQlB/nFMi1S+eHb6kCMxOugiEYpJUy1ecVPsmbXuILktx77ctEB8SFK3MPXPnC7 jason@dubious
@jasonadsit
jasonadsit / install-docker-kali.sh
Last active March 7, 2019 04:53
install-docker-kali.sh
#!/bin/bash
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' > /etc/apt/sources.list.d/docker.list
apt update
apt -y remove docker docker-engine docker.io
apt -y install docker-ce
exit 0
@jasonadsit
jasonadsit / mobilehacks.txt
Created March 24, 2017 02:23
mobilehacks.txt
Mobile Pwnage
http://cdn.media.ccc.de/congress/2013/webm/30c3-5449-en-Mobile_network_attack_evolution_webm.webm
https://osmocom.org/projects/baseband/wiki
https://github.com/RangeNetworks
https://media.defcon.org/DEF%20CON%2021/DEF%20CON%2021%20video%20and%20slides/DEF%20CON%2021%20Hacking%20Conference%20Presentation%20By%20Karl%20Koscher%20and%20Eric%20Butler%20-%20The%20Secret%20Life%20of%20SIM%20Cards%20-%20Video%20and%20Slides.m4v
https://www.defcon.org/images/defcon-21/dc-21-presentations/Koscher-Butler/DEFCON-21-Koscher-Butler-The-Secret-Life-of-SIM-Cards-Updated.pdf
https://jcardsim.org/
http://cdn.media.ccc.de/events/emf/2016/webm-hd/emf16-182-eng-Osmocom_-_Open_Source_Mobile_Communications_webm-hd.webm
http://cdn.media.ccc.de/events/camp2015/webm-hd/cccamp15-6785-en-Advanced_interconnect_attacks_webm-hd.webm
@jasonadsit
jasonadsit / vsphere-client.txt
Created April 13, 2017 16:48
vSphere Client
### vSphere Client Parameters
# Use Passthrough
& "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -s $ComputerName -passthroughAuth
# Ignore Cert Errors and Login With Username and Password
& "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -i -s $ComputerName -u $UserName -p $Password
@jasonadsit
jasonadsit / PowerShellProgressPreference.txt
Created April 20, 2017 04:39
Suppressing PowerShell Progress Bar
$ProgPrefBak = $ProgressPreference
$ProgressPreference = [System.Management.Automation.ActionPreference]::SilentlyContinue
# do stuff
$ProgressPreference = $ProgPrefBak
@jasonadsit
jasonadsit / fix-kali-vnc.sh
Last active March 5, 2019 16:53
Enable VNC Server on Kali Remotely
#!/bin/sh
systemctl disable xrdp.service
mkdir /root/.config/autostart
touch /root/.config/autostart/vino-server.desktop
echo "[Desktop Entry]" >> /root/.config/autostart/vino-server.desktop
echo "Type=Application" >> /root/.config/autostart/vino-server.desktop
echo "Name=Vino VNC server" >> /root/.config/autostart/vino-server.desktop
echo "Exec=/usr/lib/vino/vino-server" >> /root/.config/autostart/vino-server.desktop
echo "NoDisplay=true" >> /root/.config/autostart/vino-server.desktop
dbus-launch gsettings set org.gnome.Vino require-encryption false