Skip to content

Instantly share code, notes, and snippets.

Osanda Malith Jayathissa OsandaMalith

Block or report user

Report or block OsandaMalith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 2darray.c
#include <stdio.h>
//@OsandaMalith
const char *string[][2] = {
{"Osanda","Malith"} ,
{"ABC","JKL"},
{"DEF","MNO"},
};
View PublicKey.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v3.1.3
Comment: https://openpgpjs.org
xsBNBFTdTYIBCAC7J9zTkGISNp3grbXscyY7AKhFVnxg2Cb79NE2d18wrlaA
4XMIQD+sEPI7fzYN+26wMDoFjGM7WKP8oOLBHY5BclmARZbxYelUSdPPq4tg
ohV8bjJ/+DvAxqUqmvJ7cz+inOD2meWXS63BZLQtwfNSIr99Nh8CWPf0hvNL
sSpgcD8fbYCBlLFjJhpTBTgLpMWhA5hi1ygSvIrSc/yqmjHgCerB+GVpKctt
o9wyq/Yfjps+qPGY73JUcHPThPAdi4DI1fHYk8qr71iechmgOVhJ3YHzZxjg
lpbBFQs6k9JFnx6q7pNEeUTtG+glcLYA2PBQZ4E7D8+yQZ+Z668VCXg3ABEB
View keybase.md

Keybase proof

I hereby claim:

  • I am osandamalith on github.
  • I am osandamalith (https://keybase.io/osandamalith) on keybase.
  • I have a public key ASCfqDPzWwYPaREcF79e9gKYERtHxDq8YCCO92JylChSTgo

To claim this, I am signing this object:

@OsandaMalith
OsandaMalith / runas.ps1
Created Jun 13, 2018
A simple automation to run a program under a different user
View runas.ps1
<#
# Title: A simple automation to run a program under a different user
# Author: Osanda Malith (@OsandaMalith)
# Website: https://osandamalith.com
#>
add-type -AssemblyName microsoft.VisualBasic
add-type -AssemblyName System.Windows.Forms
$args = "/user:jane " + $args[0]
@OsandaMalith
OsandaMalith / magic.c
Created Dec 18, 2017
Compile this using Dev-C++ or if you use VStudio disable DEP
View magic.c
/*
* Author: @OsandaMalith
* Website: https://OsandaMalith.com
*/
unsigned char string[] =
"‰åÛ×ÙuôXPYIIIIIIIIIICCCCCC7QZjAXP0A0AkAAQ2AB2BB0BBABXP8ABuJIhh9okOKOyokpqOl"
"ytdFbC15QnaIauQc1WqgqOsiWuMGCzVKLmZEWWLffdO2dO6oZyrZVZHc6WvtFvfaNnkkNK1Jf8r"
"gr4Fwv89c3FfwvffillmfagLgwzBXz0ULKzLLCxlGLf3RvbwOInmTPLwkHJHQ0URWvc6nkxp2HK"
"NVbDFdFkOKf2HFkwsgvvfYoIFu8b54CFfEVyoN6Lym0v3dqbkhhIo7qWvdFmiQYu7JrONHhIeUQ"
"tFfflKKhOIYKXZHkN0k9QMXLixzFfaWvwvMipL6lfbNNOyQU9lKXJyeQFf4FH9oWFkry7xnicuJ"
@OsandaMalith
OsandaMalith / detectArch.c
Last active Sep 25, 2017
Few tricks that I found out when I had a look at the segment registers in Windows.
View detectArch.c
#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/
*/
@OsandaMalith
OsandaMalith / deflate.cs
Created Jun 4, 2017
Compress and decompress files using the Deflate algorithm
View deflate.cs
/*
* 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;
View keygen.c
#include "stdafx.h"
#include <Windows.h>
/*
* Author: @OsandaMalith
* Website: https://osandamalith.com
*/
void check(int *pid) {
TCHAR computerName[MAX_COMPUTERNAME_LENGTH + 1];
View publickey.asc
-----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
@OsandaMalith
OsandaMalith / pack.c
Last active Nov 16, 2016
Simple experiment of packing and unpacking a DWORD and a short inside a DWORD64 variable and making a string value.
View pack.c
#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
You can’t perform that action at this time.