-
-
Save gavz/8403a15970f8283e614352b6130b17fd to your computer and use it in GitHub Desktop.
Revisions
-
daaximus revised this gist
May 4, 2025 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,4 @@ // author: daax // 0x4a65 = 19045 (windows version) int main() -
daaximus revised this gist
May 3, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ // author: daax // "undetected" peb walk // maldev get peb undetected // malware development undetected peb walk -
daaximus revised this gist
May 3, 2025 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,6 +47,4 @@ int main() } free( wsi ); return 0; } -
daaximus revised this gist
May 2, 2025 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ // created by daax // "undetected" peb walk // maldev get peb undetected // malware development undetected peb walk // 0x4a65 = 19045 (windows version) int main() @@ -45,4 +47,6 @@ int main() } free( wsi ); return 0; } // if you paid for this in some maldev course you got scammed :^) this is obviously a meme (that works) -
daaximus revised this gist
May 2, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // created by daax - 5.2.2025 // if you paid for this in some maldev course you got scammed :^) // 0x4a65 = 19045 (windows version) int main() -
daaximus revised this gist
May 2, 2025 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ // created by daax - 5.2.2025 // always google curriculums of courses before they make you pay :^) it's free // 0x4a65 = 19045 (windows version) int main() { PSAPI_WORKING_SET_INFORMATION* w = ( PSAPI_WORKING_SET_INFORMATION* ) malloc( 1 << 20 ); -
daaximus created this gist
May 2, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ // created by daax - 5.2.2025 // always google curriculums of courses before they make you pay :^) it's free int main() { PSAPI_WORKING_SET_INFORMATION* w = ( PSAPI_WORKING_SET_INFORMATION* ) malloc( 1 << 20 ); QueryWorkingSet( GetCurrentProcess(), w, 1 << 20 ); for ( u32 i = 0; i < w->NumberOfEntries; i++ ) if ( ( w->WorkingSetInfo[ i ].Flags & 31 ) == 4 ) for ( u8* p = ( u8* ) ( ( w->WorkingSetInfo[ i ].Flags >> 12 ) << 12 ), *e = p + 4094; p < e && !( *( u16* ) p == 0x4A65 && printf( "%p\n%S\n", ( PPEB ) ( p - 0x120 ), *( PWSTR* ) ( ( u8* ) ( *( u64* ) ( ( p - 0x120 ) + 0x20 ) ) + 0xc0 + 0x8 ) ) ); p++ ); return free( w ), 0; } #define READWRITE 4 int main() { PSAPI_WORKING_SET_INFORMATION* wsi = ( PSAPI_WORKING_SET_INFORMATION * )malloc( 1<<20 ); QueryWorkingSet( GetCurrentProcess(), wsi, 1<<20 ); for ( ULONG_PTR i = 0; i < wsi->NumberOfEntries; i++ ) { ULONG_PTR flags = wsi->WorkingSetInfo[ i ].Flags; if ( ( flags & 0x1F ) == READWRITE ) { unsigned char* addr = ( unsigned char* ) ( ( flags >> 12 ) << 12 ); unsigned char* end = addr + 4094; while ( addr < end ) { if ( *( uint16_t* ) addr == 0x4A65 ) { PPEB peb = ( PPEB ) ( ( ULONG_PTR ) addr - 0x120 ); printf( "%p\n%S\n", peb, peb->ProcessParameters->DesktopInfo.Buffer ); free( wsi ); return 0; } addr++; } } } free( wsi ); return 0; }