Skip to content

Instantly share code, notes, and snippets.

@asutoshpalai
asutoshpalai / keybase.md
Created March 9, 2018 05:58
Keybase proof

Keybase proof

I hereby claim:

  • I am asutoshpalai on github.
  • I am asutoshpalai (https://keybase.io/asutoshpalai) on keybase.
  • I have a public key whose fingerprint is 6501 59C1 58E8 A4F8 7DB1 BBA9 146F 62A1 BFB0 8944

To claim this, I am signing this object:

@asutoshpalai
asutoshpalai / Readme.md
Created March 4, 2018 04:18
Making retdec-idaplugin work with local decompiler on wine

RetDec IDA Pro plugin is not able to work with local RetDec installation as it is not able to first find sh command and after that, the paths provided by the pluigin are Windows system path (Z:*) which can't be understood by the decompiler. These two files fix that.

The first file sh.bat should be located in the PATH (I installed it at C:\windows). The second one (decompiler.sh) should be in /usr/bin on the host system.

@asutoshpalai
asutoshpalai / de-jsfuck.lisp
Last active March 24, 2017 06:22
JSFuck deobfuscate (DJSFuck - pun intended)
(use-package :cl-ppcre)
(defconstant +parens-map+ '(
(#\( . #\))
(#\[ . #\])))
(load "jsfuck-map")
(defun detect-nums (str pos)
"Numbers are in form of [!+[]+!+[]] for 2, [!+[]+!+[]] for 3, [+!+[]] for 1"
@asutoshpalai
asutoshpalai / README.md
Last active August 22, 2016 18:19
Bundler Plugin (GSoC 2016) Submission

Bundler Plugin System (GSoC 2016)

Hi, I am Asutosh Palai from IIT Roorkee. This summer I contributed to Bundler under Ruby Organisation for my GSoC project.

Aim of my project was to develop the plugin system for Bundler which can be used to extend it for custom commands, custom gem sources and lifecycle hooks.

#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/types.h>
@asutoshpalai
asutoshpalai / go_back_n.c
Last active August 5, 2016 15:57
Sliding window protocol
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#define PACKET_DROP_PROBABILITY 4 // Inverse of the probability
#!/usr/bin/env ruby
# forzen_string_literal: true
def run
thread = Thread.new do
puts "Running..."
nil while true
end
begin