Skip to content

Instantly share code, notes, and snippets.

@wogho
wogho / Kali-OCI.sh
Last active August 17, 2022 07:21 — forked from AnoRebel/Kali-WSL.sh
Oracle Cloud set up kali Linux
sudo -i
free -m
sudo dd if=/dev/zero of=/mnt/swap.0 bs=5024 count=1048576 && sudo mkswap /mnt/swap.0 && echo "/mnt/swap.0 swap swap defaults 0 0" >> /etc/fstab && swapon /mnt/swap.0 && sudo swapon -s
apt update && DEBIAN_FRONTEND=noninteractive apt install -y wget kali-linux-headless
vi xfce4.sh
#!/bin/sh
#echo "[i] Updating and upgrading Kali (this will take a while)"
@wogho
wogho / start.ps1
Created May 2, 2022 09:55
Start helper to GeonjuV2.0.ps1
for ($i=0; ; $i++)
{
Powershell.exe -noprofile -executionpolicy bypass -file "C:\Users\BlackBear\Desktop\GeonjuV2.0.ps1"
Start-Sleep -s 720
Powershell.exe -noprofile -executionpolicy bypass -file "C:\Users\BlackBear\Desktop\GeonjuV2.0.ps1"
Start-Sleep -s 900
@wogho
wogho / GeonjuV2.0.ps1
Created May 2, 2022 09:54
Azure CLI : control VM and Change Network NIC, Setting Public IP
# 머신 종료 / VM off
Stop-AzVM -ResourceGroupName "GeonjuV2.0" -Name "GeonjuV2" -Force
Start-Sleep -s 10
# NIC 랜덤 생성 / Create New NIC Ramdom
$vm = Get-AzVM -ResourceGroupName GeonjuV2.0 -Name GeonjuV2
$nicname = $vm.NetworkProfile.NetworkInterfaces[0].Id.Split('/') | select -Last 1
$name = ([int]$nicname + 1)
$nic = New-AzNetworkInterface -Name $name -ResourceGroupName "GeonjuV2.0" -Location "koreacentral" -SubnetId "/subscriptions/54827d60-3591-4014-a594-e6b75fb7deab/resourceGroups/GeonjuV2.0/providers/Microsoft.Network/virtualNetworks/GeonjuV2.0-vnet/subnets/default" -IpConfigurationName "IPConfiguration1" -DnsServer "8.8.8.8", "8.8.4.4”
Start-Sleep -s 10
@wogho
wogho / StartMacro.ps1
Created May 2, 2022 09:48
Macro Start from Azure VM
$filenames = @(
'macro.pmc'
)
$idx = Get-Random -Minimum 0 -Maximum $filenames.count
$filename=$filenames[$idx]
@wogho
wogho / chrome.ps1
Last active May 2, 2022 09:44
delete chrome history
taskkill /F /IM "chrome.exe"
Start-Sleep -Seconds 5
#------------------------------------------------------------------#
#- Clear-WindowsUserCacheFiles #
#------------------------------------------------------------------#
Function Clear-WindowsUserCacheFiles {
param([string]$user=$env:USERNAME)
Remove-CacheFiles "C:\Users\$user\AppData\Local\Temp"
Remove-CacheFiles "C:\Users\$user\AppData\Local\Microsoft\Windows\WER"