Skip to content

Instantly share code, notes, and snippets.

View 1mm0rt41PC's full-sized avatar

1mm0rt41PC 1mm0rt41PC

View GitHub Profile
cat <<'EOD' | docker run -i --rm -v ./:/code rust:slim-buster bash
apt-get update && apt-get install -y curl gcc clang libclang-dev libgssapi-krb5-2 libkrb5-dev libsasl2-modules-gssapi-mit musl-tools gcc-mingw-w64-x86-64
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "/usr/local/cargo/env"
cd /code
export targetbuild='x86_64-unknown-linux-gnu';
echo '##########################################################################'
echo -e "\033[34m$targetbuild\033[0m"
rustup install stable-$targetbuild --force-non-host
@1mm0rt41PC
1mm0rt41PC / userDefineLang_Cypher_dark.xml
Last active May 23, 2023 14:28 — forked from cbonesana/userDefineLang_Cypher_dark.xml
A Cypher syntax highlighter for Notepad ++ with colors for a dark theme.
<NotepadPlus>
<UserLang name="Cypher" ext="cypher" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03// 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
$tests = @'
{
"RDP server configuration": {
"Hive": {
"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services": {
"KeepAliveInterval": "DWord:1",
"DeleteTempDirsOnExit": "DWord:1",
"SecurityLayer": "DWord:2",
"UserAuthentication": "DWord:1",
@1mm0rt41PC
1mm0rt41PC / DeployOffice2019.ps1
Last active January 25, 2023 22:11
DeployOffice2019
# iwr https://gist.githubusercontent.com/1mm0rt41PC/6c5f758f7010561450ce48ae389be5f3/raw/DeployOffice2019.ps1 | out-string | iex
#choco.exe install -y office2019proplus --params "/Language:fr-FR"
function install_office2019( $key ){
$url = 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_15928-20216.exe'
$checksum = '12B4CF116CA332C59BABC9A99EF6505BB659EA7623E6F1A71AF04F47A772A8DB'
$conf = @'
<Configuration>
<Add OfficeClientEdition="64" Channel="PerpetualVL2019" AllowCdnFallback="True">
@1mm0rt41PC
1mm0rt41PC / WindowsUpdate.ps1
Last active October 13, 2022 12:01 — forked from srz-zumix/WindowsUpdate.ps1
WindowsUpdate powershell
$x=get-date
# Condition d'execution
if( $x.Day -lt 2 ){
Write-Host "Update not allowed the 1 and 2 of each month"
exit
}
if( $x.DayOfWeek -eq [System.DayOfWeek]::Monday ){
Write-Host "Update not allowed Monday"
exit
}
@1mm0rt41PC
1mm0rt41PC / wireguard-generator.sh
Last active April 24, 2022 21:22
Wireguard Quick Generator
#!/bin/bash
apt-get install wireguard qrencode wireguard-dkms -y
modprobe wireguard
lsmod | grep wireguard
mkdir -p /etc/wireguard
wg-quick down wg0 2>&1 >/dev/null
export wg_key=`wg genkey`
export wg_psk=`wg genkey`
@1mm0rt41PC
1mm0rt41PC / New-GPOSchTask.ps1
Last active November 23, 2022 15:10
Create ScheduledTasks in GPO via command line
function New-GPOSchTask
{
[CmdletBinding()]
Param (
[Parameter(Mandatory = $True)]
[String]
[ValidateNotNullOrEmpty()]
$TaskName,
[Parameter(Mandatory = $True)]
@1mm0rt41PC
1mm0rt41PC / linux-dnsmasq-mitm.sh
Created November 17, 2020 17:56 — forked from tobert/linux-dnsmasq-mitm.sh
Instructions + iptables script for MITM laptop for tcpdump and/or wireshark
#!/bin/bash
# put this in /etc/dnsmasq.conf then start/restart it
# modify the interface= to point at the ethernet port the device is connected to
# optionally, set MAC address in the dhcp-host line to be the MAC of the device
#interface=enp0s31f6
#dhcp-range=192.168.102.9,192.168.102.20,255.255.255.0,12h
#dhcp-host=70:58:12:a8:e5:35,192.168.102.10
# set INTERNET_INTERFACE to the laptop's internet access interface, e.g. wifi interfaces
@1mm0rt41PC
1mm0rt41PC / linux-dnsmasq-mitm.sh
Created November 17, 2020 17:55 — forked from tobert/linux-dnsmasq-mitm.sh
Instructions + iptables script for MITM laptop for tcpdump and/or wireshark
#!/bin/bash
# put this in /etc/dnsmasq.conf then start/restart it
# modify the interface= to point at the ethernet port the device is connected to
# optionally, set MAC address in the dhcp-host line to be the MAC of the device
#interface=enp0s31f6
#dhcp-range=192.168.102.9,192.168.102.20,255.255.255.0,12h
#dhcp-host=70:58:12:a8:e5:35,192.168.102.10
# set INTERNET_INTERFACE to the laptop's internet access interface, e.g. wifi interfaces
// start with:
// frida -U -l pinning.js -f [APP_ID] --no-pause
Java.perform(function () {
console.log('')
console.log('===')
console.log('* Injecting hooks into common certificate pinning methods *')
console.log('===')
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');