Skip to content

Instantly share code, notes, and snippets.

View mskf3000's full-sized avatar
💭
I may be slow to respond.

MSKF3000 mskf3000

💭
I may be slow to respond.
View GitHub Profile
@AveYo
AveYo / ..runasTI.bat
Last active October 19, 2025 08:46
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022
goto :nfo
[FEATURES]
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable
- accepts special characters in paths for which default run as administrator fails
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer
[USAGE]
- First copy-paste RunAsTI snippet after .bat script content
- Then call it anywhere to launch programs with arguments as TI
@typelogic
typelogic / tshark.md
Created August 9, 2019 17:06
tshark basics

parsing pcap capture file with tshark

tcpdump -r vagrant_up.pcap -w outfile.pcap "dst port 5150"
tshark -r vagrant_up.pcap -n -T fields -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport
tshark -r vagrant_up.pcap -T json > /tmp/output.json
jq '.|length' /tmp/output.json
jq '.[4000]' /tmp/output.json

follow a tcp communication between two nodes

@ykoster
ykoster / Invoke-MTPuTTYConfigDump.psm1
Last active February 27, 2024 13:50
Invoke-MTPuTTYConfigDump - read an MTPuTTY configuration file, decrypt the passwords and dump the result
<#
.Synopsis
Decrypt an MTPuTTY configuration file
.Description
Read an MTPuTTY configuration file, decrypt the passwords and dump the result
.Parameter ConfigFile
Path to the MTPuTTY configuration file
nslookup -q=TXT o-o.myaddr.l.google.com. ns1.google.com.
dig -4 TXT +short o-o.myaddr.l.google.com. @ns1.google.com.
nslookup myip.opendns.com. resolver1.opendns.com.
dig -4 A +short myip.opendns.com. @resolver1.opendns.com.
nslookup whoami.akamai.net. ns1-1.akamaitech.net.
dig -4 A +short whoami.akamai.net. @ns1-1.akamaitech.net.
curl -s https://api.ipify.org
How to install windows on digital ocean,
use this tutorial :
https://milankragujevic.com/how-to-install-windows-10-on-digitalocean
or if you want to create own image :
https://glitchwitch.io/blog/2018-09/windows-10-on-digitalocean/
this image .gz mirror got from whatuptime :
try first if it working>>
[Microsoft Windows Server 2012]
Automatic ping of all AWS EC2 IPs from http://ec2-reachability.amazonaws.com/
@tothi
tothi / android_burp.txt
Last active August 15, 2024 20:24
android emulator setup with sniffer CA
OBSOLETE: moved to Magisk + Magisk Trust User Certs module.
Emulator setup with Magisk: https://gist.github.com/tothi/1a206791c8b77d7e42015183c980657e
Magisk Trust User Certs module: https://github.com/NVISOsecurity/MagiskTrustUserCerts
android emulator clean install + prepare for https proxy analysis
=================================================================
# clean up old packages
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface list member
add interface=ether1 list=WAN
/ip firewall address-list
add address=192.168.0.0/16 list=Bogon
add address=10.0.0.0/8 list=Bogon
@chrisdavidmiles
chrisdavidmiles / bulk_dig.sh
Last active September 9, 2024 16:48
Bulk DNS Lookup bash script
#!/bin/bash
# Bulk DNS Lookup
# Generates a CSV of DNS lookups from a list of domains.
#
# File name/path of domain list:
domain_list='domains.txt' # One FQDN per line in file.
#
# IP address of the nameserver used for lookups:
ns_ip='1.1.1.1' # Is using Cloudflare's 1.1.1.1.
#
@Adron
Adron / disable-hyper-v.ps1
Created February 4, 2019 17:21
Disabling/Enabling Hyper-V via Powershell ("Run As Administrator")
# Remember, all of these commands need executed via Powershell that is started/opened with "Run As Administrator".
# Disabling Hyper-V
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
# Enabling Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All