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
| require 'socket' | |
| class ICAPServer | |
| def initialize(port = 1344) | |
| @server = TCPServer.new(port) | |
| puts "ICAP server started on port #{port}" | |
| end | |
| def run | |
| loop do |
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
| These are the top 10 passwords tried against an SSH honeypot I'm running. I'm taking a sample every day and running the data through Pipal to generate the lists. I'm planning to automate this and add all the other Pipal data as soon as I get time. | |
| These stats aren't that interesting at the moment, but I'm hoping to look for trends or to try to spot odd things happening, such as new default creds being picked up and tested. Any suggestions, let me know. | |
| 7 August | |
| 123456 = 38 (11.11%) | |
| root = 8 (2.34%) | |
| 12345678 = 8 (2.34%) | |
| dbadmin = 8 (2.34%) |
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
| alert("Gist XSS"); |
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
| aim=0 | |
| depth=0 | |
| forward=0 | |
| File.readlines('input.txt').each do |line| | |
| if /([^ ]*) ([0-9]*)/ =~ line | |
| puts "direction: " + $1 + " value " + $2 + "\n" | |
| value = $2.to_i | |
| movement = $1 | |
| if movement == "forward" | |
| forward = forward + value |
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
| depth=0 | |
| forward=0 | |
| File.readlines('input.txt').each do |line| | |
| if /([^ ]*) ([0-9]*)/ =~ line | |
| puts "direction: " + $1 + " value " + $2 + "\n" | |
| value = $2.to_i | |
| movement = $1 | |
| if movement == "forward" | |
| forward = forward + value | |
| else |
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
| count = 0 | |
| previous = 999999999999999 | |
| current = 0 | |
| block1=0 | |
| block2=0 | |
| block3=0 | |
| pos=0 | |
| File.readlines('input').each do |line| | |
| num = line.to_i |
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
| git fetch upstream | |
| git checkout master | |
| git reset --hard upstream/master | |
| git push origin master --force |
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
| 10 PRINT "Hello" | |
| 20 GOTO 10 |
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
| <?php | |
| /* | |
| Put this file in the root of the DVWA installation then access it through a browser. | |
| */ | |
| require_once "config/config.inc.php"; | |
| function var_dump_pre ($data) { | |
| print "<pre>"; | |
| var_dump ($data); |
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
| <?php | |
| session_start(); | |
| $message = ""; | |
| if ($_SERVER['REQUEST_METHOD'] == "POST") { | |
| if (array_key_exists ("token", $_POST) && array_key_exists ("token", $_SESSION)) { | |
| if (array_key_exists ("token", $_SESSION)) { | |
| if ($_POST['token'] == $_SESSION['token']) { | |
| $message = "Success"; |
NewerOlder