Skip to content

Instantly share code, notes, and snippets.


Mohd Shahril shahril96

View GitHub Profile
shahril96 / reverseme_4_solution.c
Last active Aug 29, 2015
[TBD] Reverseme #4 decoder
View reverseme_4_solution.c
here is solution for reverseme #4 php challenge
written using C, cuz wut? cuz im boringgg at dat time
here is the link for mentioned challenge :
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
View 4shared_2_mp3.php
// this shit is written as part of my project with my friends, but that idea was demolished
// this actually will try to find .mp3 direct link file from 4shared audio download link
// im surprised that this still working after 2 years i wrote this script
// btw, here you are, enjoy :) (warning: code looks suck!)
$shared = new four_shared;
//echo $shared->search('linkin park');
shahril96 / bitwise_hack_functions.c
Created Feb 3, 2015
Set of useful functions for manipulation integer in low level binary
View bitwise_hack_functions.c
// set of useful functions for manipulation integer in low level binary
// this was written when i'm started to learn C
// code look suck, well, this shit is from 2 years ago :) (ahh unforgotten memories)
// hope you can learn somethings from this code
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
shahril96 / arguments_analysis.asm
Created Feb 26, 2015
Analysis of assembly language output produced by C code that accepting string argument from Terminal perimeter
View arguments_analysis.asm
#include <stdio.h>
int main(int argc, char *argv[])
puts(""); // space
if(argc == 1)
shahril96 / configuration.js
Created Apr 26, 2015
My Aria2 WebUI Config
View configuration.js
.module('', [])
.constant('$name', 'Aria2 WebUI') // name used across the entire UI
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in
.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
host: 'localhost',
port: 6800,
encrypt: false,
auth: { // either add the token field or the user and pass field, not both.
View promed2012-c.cpp
#include <iostream>
#include <cmath>
#define MAXF 999999.0
#define EPSILON 0.0000000001
using namespace std;
int main()
View promed2012-a.cpp
#include <iostream>
#include <cctype>
using namespace std;
int validate_input(char input[])
char bool_zul[30] = {0}, *ptr = input;
shahril96 / strlen.asm
Created May 27, 2015
Assembly - Example of strlen using fully assembly, utilized scan string operation with repetition
View strlen.asm
; cara nk guna :
; first convert jadi obj file guna nasm -> nasm -f elf32 test.asm -F dwarf -g
; then kena guna linker, guna gcc mudah -> gcc test.o -o test -m32 -ggdb
; kemudian run ./test
section .text
global main ; must be declared for linker (ld)
section .data
msg db 'Hello, world!', 0xa, 0x0 ; our dear string
shahril96 / lis.cpp
Created Jun 11, 2015
POC of Longest Increasing Sub-Sequence with complexity O(mn)
View lis.cpp
/* References : */
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
shahril96 / lcs.c
Created Jun 11, 2015
POC of Longest Common Sub-Sequence problem with complexity O(nm)
View lcs.c
/* References : */
#include <stdio.h>
#include <string.h>
#define MAX(X,Y) ((X) > (Y)) ? (X) : (Y)
char str[100];