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
@echo off | |
:: BatchGotAdmin | |
:------------------------------------- | |
REM --> Check for permissions | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
REM --> If error flag set, we do not have admin. | |
if '%errorlevel%' NEQ '0' ( | |
echo Requesting administrative privileges... |
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> | |
/* | |
crackme link : http://crackmes.de/users/lafarge/lafarges_crackme_2/ | |
*/ | |
void xor_data(char *src, int nsrc, char *byte) | |
{ | |
for(int i = 0; nsrc-- > 0; i++) | |
{ |
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 <string.h> | |
int main() | |
{ | |
char key[40] = {0}; | |
memset(key, 'O', 32); | |
int i = 0; | |
unsigned id; |
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
<?php | |
date_default_timezone_set('Asia/Kuala_Lumpur'); // Here is important for new PHP version. | |
define('size', 10); // multithread | |
define('ip', NULL); | |
define('start', 0x0); // what hex to start | |
define('sleept', 10); // sleep time if failed | |
define('attempt', 10000); // how many attempts | |
define('usleept', 100000); // micro sleep after current attempt | |
define('timeout', 10); // timeout for each multi request |
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 <iostream> // cout, cin | |
#include <cmath> // sqrt, pow | |
#include <random> // random_device, mt19937, uniform_real_distribution | |
#include <iomanip> // setprecision | |
#include <ctime> // time | |
#include <cstdint> // uint64_t | |
uint64_t s[2] = {(uint64_t)time(NULL) % 100, (uint64_t)time(NULL) % 10000}; | |
int xorshift128(int start, int end) { |
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
<?php | |
/* | |
* title : simple instagram info fetcher | |
* | |
* author : shahril | |
* receipant : afif zafri | |
* date : 29-dis-2015 | |
*/ |
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
<?php | |
$get = file_get_contents("https://sapsnkra.moe.gov.my/ibubapa2/semak.php?txtIC=010610101490&Semak=Semak+Laporan&jenissek=2&tahun_semasa=2015"); | |
// build up custom header + cookie | |
preg_match_all('#Set-Cookie: (.*?);#', implode('', $http_response_header), $out); | |
$opts = array('http'=>array('header'=> "Cookie: " . implode('; ', $out[1]) . "\r\n")); | |
$get = file_get_contents("https://sapsnkra.moe.gov.my/ibubapa2/menu.php", false, stream_context_create($opts)); | |
preg_match_all('#<strong>(.*?) </strong>#', $get, $out); |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/* | |
* Author: shahril | |
* | |
* Created on January 22, 2016, 5:21 PM |
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
import java.util.*; | |
public class postfix { | |
public static void main(String args[]) { | |
String infix = "x-(y*a/b-(z+d*e)+c)/f"; | |
System.out.println("Infix : " + infix); | |
System.out.println("Postfix : " + inf2postf(infix)); |
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
/* | |
* Ayam implementation of Binary Search Tree | |
* | |
* references :- | |
* https://en.wikipedia.org/wiki/Binary_search_tree | |
* http://geeksquiz.com/binary-search-tree-set-2-delete/ | |
* | |
* ~ not very descriptive compile guide (linux) ~ | |
* $ g++ bstree.cpp -o bstree -std=c++11 |