Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am w00dbury on github.
  • I am w00dbury (https://keybase.io/w00dbury) on keybase.
  • I have a public key whose fingerprint is A0E6 A6FF 4FC7 E570 D48F 9373 D52A 7493 F197 6A77

To claim this, I am signing this object:

Connect-VIServer <vcenter server name>
Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type | export-Csv c:\tmp\VM_Network_Interface.csv -NoTypeInformation
$vm = Get-VM <VM Name>
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.ChangeTrackingEnabled = $false
$vm.ExtensionData.ReconfigVM($spec)
$SnapName = New-Snapshot -vm $vm -Name "CBT-Rest-Snapshot"
$SnapRemove = Remove-Snapshot -Snapshot $SnapName -Confirm:$false
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.ChangeTrackingEnabled = $true
$vm.ExtensionData.ReconfigVM($spec)
|
}
~
x
y
z
{
t
u
v
@w00dbury
w00dbury / virustotal_upload
Created February 14, 2018 15:40 — forked from mattghali/virustotal_upload
Upload a sample to VirusTotal and pretty print the report. All in a handy alias.
#!/usr/bin/env bash
#
# Upload a sample to VirusTotal and pretty print the report.
# All in a handy alias.
#
# Dependencies:
#
# * curl
# * jq
# * VirusTotal API key
@w00dbury
w00dbury / Get-VMSnapshots.ps1
Created July 6, 2018 14:40
List snapshots for all VMs
Connect-VIServer -Server <Server>
get-vm | get-snapshot | select vm, name, description, created, sizegb
@w00dbury
w00dbury / GetAllWifiPasswords.ps1
Created August 28, 2018 03:05 — forked from Saturate/GetAllWifiPasswords.ps1
PowerShell Wifi Script
# Run this script as an Admin user and get a list of all WiFi passwords.
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() };
$listProfiles | foreach {
$profileInfo = netsh wlan show profiles name=$_ key="clear";
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() };
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() };
[PSCustomObject]@{
WifiProfileName = $SSID;
Password = $Key
}
@w00dbury
w00dbury / NYC Taxi Data
Last active April 29, 2022 18:52
Download NYC taxi data
aws s3 sync s3://nyc-tlc . --no-sign-request --exclude "*" --include "trip data*"
@w00dbury
w00dbury / gist:b7336aac519e45bf0b6f577626be30ee
Created July 24, 2020 20:44
Update date from http header
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
@w00dbury
w00dbury / zupimages_urls.txt
Last active April 25, 2024 19:43
zupimages scams
https://zupimages.net/up/24/17/lasb.png
https://zupimages.net/up/24/13/dhg8.png
https://zupimages.net/up/24/13/vvqf.png
https://zupimages.net/up/24/13/9k14.png
https://zupimages.net/up/24/13/7t3i.png
https://zupimages.net/up/24/13/n401.png
https://zupimages.net/up/24/13/rb6m.png
https://zupimages.net/up/24/10/ki13.png
https://zupimages.net/up/23/27/h5rw.png
https://zupimages.net/up/23/27/8lfg.png