Skip to content

Instantly share code, notes, and snippets.

View dnetguru's full-sized avatar
🏠
Working from home

dnetguru

🏠
Working from home
View GitHub Profile
@dnetguru
dnetguru / fbctf.ascii
Created June 4, 2017 21:55
Facebook CTF Wiretup
LEVEL ONE:
Step 0) We deobfuscated the crypto.js file and ran it thru a beautifier to make the code more readable.
Step 1) encrypt(form) function:
Upon submitting the form a call is made to encrypt(form) where the value from the textbox is extracted and sent to a function called numerical_value(str) which returns a numerical representation of the input string.
function encrypt(form) {
var res = numerical_value(form.password.value);
res = res * (3 + 1 + 3 + 3 + 7);
@dnetguru
dnetguru / SpaceExtender.ino
Last active April 27, 2017 07:30
Extend SD over WiFi
/*
http://arduino.cc/en/Tutorial/ExtendingYunDiskSpace
*/
#include <Process.h>
#include <Console.h>
#define DEBUG 0
#define SUCCESSFUL_EXIT_CODE 0
### Keybase proof
I hereby claim:
* I am dnetguru on github.
* I am dnetguru (https://keybase.io/dnetguru) on keybase.
* I have a public key whose fingerprint is D10E 5D9D 4292 DCDE F60B 403F 2899 B1AA 1D25 71B6
To claim this, I am signing this object:
@dnetguru
dnetguru / HelloWorld_inline.c
Last active May 23, 2019 20:22
Sample ASM code to do a call and simple arithmatics for my R/E presentation
// Defines the entry point for the console application.
// $author: @dNetGuru
// TConsole.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include<time.h>
char message[] = "Hello World!\n";
#!/bin/bash
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J
# Mount the ElCapitan Blank ISO Image
hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@dnetguru
dnetguru / gist:cf2d3b76dae5286c283d
Last active June 16, 2016 13:09
LVL30: Image analysis helper
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script>
function gcd_rec(a, b) {
if (b) {
return gcd_rec(b, a % b);

Keybase proof

I hereby claim:

  • I am dnetguru on github.
  • I am dnetguru (https://keybase.io/dnetguru) on keybase.
  • I have a public key whose fingerprint is 4C3B BB79 86BD 904A 2F4F 0C5A 86F8 E999 8A55 0816

To claim this, I am signing this object: