This file contains 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 characters
#include <Windows.h> | |
#include <wchar.h> | |
/* | |
* Author: Osanda Malith Jayathissa - @OsandaMalith | |
* Website: https://osandamalith.com | |
* Description: Few tricks that you can use to detect the architecture in Windows | |
* Link : http://osandamalith.com/2017/09/24/detecting-architecture-in-windows/ | |
*/ |
This file contains 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 characters
/* | |
* Title: Deflate Tool | |
* Purpose: Compress and decompress files using the Deflate algorithm | |
* Author: Osanda Malith Jayathissa (@OsandaMalith) | |
* Website: https://OsandaMalith.com | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; |
This file contains 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 characters
#include "stdafx.h" | |
#include <Windows.h> | |
/* | |
* Author: @OsandaMalith | |
* Website: https://osandamalith.com | |
*/ | |
void check(int *pid) { | |
TCHAR computerName[MAX_COMPUTERNAME_LENGTH + 1]; |
This file contains 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 characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: OpenPGP.js v.1.20131017 | |
Comment: http://openpgpjs.org | |
xsFNBFRrI2sBEACGZCPNizSo3isr1XqIiQv4Fqn48m7H/ejxALHvUxWErEi+ | |
jst8BYcjD4GUkzA+pTQ282jx9pIxWYPdTcwNcloLBFOeyIUNU9KKl4B72Z+B | |
8LVeYWx7D4rYdYiEgKz0YZTwG4iT5ZaZt8BtpCB6TJkHnoQXGpzTGrgm6Qrz | |
wuK19n0iaaX9kswnNj5k5rk+caWWM4v3KNh+CKnpnRUOOSsfF231hnV6Mckl | |
ucyPi4EKehtbFFlUUJfKmJWS3tjjupO6gP/WcYYO0wz7CEtEIvkdfj+oK09N | |
xkxilkADq4U72k5v5vxfDQDM0L/pDoD9SYr92Q6KuGCjpRnIK3Sbb46NlXpZ |
This file contains 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 characters
#include <stdio.h> | |
#include <windows.h> | |
/* | |
* Author : @OsandaMalith | |
* Website: https://osandamalith.com | |
* Description: Simple experiment of packing and unpacking a DWORD and a short inside a DWORD64 variable and making a string value. | |
*/ | |
int main() { | |
DWORD a = 1633971809; // a < 2 ^ 32 |
This file contains 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 characters
%@"%"@,~,%,!`_^[^_^]-;>`_^[^_^]%"!,^,:`_^[^_^]-@{-`{-?:`_[^_^]_-``-``-@@`_^[^_^]-`~-``-@$`_^[^_^]-``-``-@@`_^[^_^]-`~-``-@#`_^[^_^]-+~-/~-?;`_^[^_^]%!~-;-,;`_^[^_^]-"$-@~-@``_^[^_^]-{[-);-@:`_^[^_^]-/*,%`_^[^_^]`_^[^_^]`_^[^_^]`_^[^_^]%@$-@;-?;`_^[^_^]-/~-`&,#`_^[^_^]-`~-`{,*`_^[^_^]-@@-$!`_^[^_^]-:$,[,<`_^[^_^]-!|-.),!`_^[^_^]-@{-@`-/(`_^[^_^]`_^[^_^]`_^[^_^]`_^[^_^]-{!-{.,.`_^[^_^]-~/-/``_^[^_^]%""-}@$"`_^[^_^]%@@-!/,!`_^[^_^]-:*-=%`[[[[[[[[`^^^^^-%+)@@^^^!;@@#",((,.((-$+)@*+@!!@-,!"(+@@,$-,!"_$#'!&.&$&!&-$!&,&)&$'(&."#&_&-&-@*@$" |
This file contains 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 characters
%if 0 | |
* Title: Manual String Length function | |
* Author: Osanda Malith (@OsandaMalith) | |
* Website: https://osandamalith.com | |
%endif | |
global _start | |
section .text |
This file contains 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 characters
/??/ | |
* Title: Obfuscating a String using C++ | |
* by @OsandaMalith | |
*??/ | |
/ | |
??=include <iostream> | |
??=include <string> | |
??=include <stdlib.h> | |
This file contains 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 characters
/*! Author: Osanda Malith Jayathissa | |
* Follow: @OsandaMalith | |
* Website: http://osandamalith.wordpress.com | |
*/ | |
# select 1 and 1=1; in obfuscated form | |
select ('osanda'+'malith')=0 && ~'-2magic' = -'-1'; | |
# select 1 and 1=0; in obfuscated form |
This file contains 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 characters
#include "stdafx.h" | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
unsigned int checksum(unsigned char string[]) { | |
unsigned int var; |