Skip to content

Instantly share code, notes, and snippets.

View Bengman's full-sized avatar

Mats Engman Bengman

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bengman on github.
  • I am matsengman (https://keybase.io/matsengman) on keybase.
  • I have a public key whose fingerprint is 30D8 A653 E027 A706 E070 84C9 8123 674F EF25 97DA

To claim this, I am signing this object:

#! /usr/bin/python
import requests
# All possible characters
allChars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
# Parsed characters, the ones that actually exist in the password
parsedChars = ''
# Final Password
password = ''
#!/usr/bin/python
import requests
allChars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
parsedChars = ''
password = ''
#! /usr/bin/python
import requests
c='1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
password=''
#We know length of password is 32
for nS in range(1,33):
found = False
for x in range (0,len(c)-1):
using System;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Net;
namespace level12
{
class Program
{
<?php
function xor_encrypt($in) {
$key = "qw8J";
$text = $in;
$outText = '';
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
}
<?php
$orig_cookie = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw=');
function xor_encrypt($in) {
$text = $in;
$key = json_encode(array( "showpassword"=>"no", "bgcolor"=>"#ffffff"));
$outText = '';
// Iterate through each character
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
<?php
function decrypt($secret){
return base64_decode(strrev(hex2bin($secret)));
}
$dec = decrypt("3d3d516343746d4d6d6c315669563362");
print($dec);
?>
#!/bin/bash
for i in {0000..9999}; do
echo "[+]testing" $i
/home/leviathan6/leviathan6 $i
done
#!/bin/bash
echo "[+] Starting brute-force..."
#The password for the current level is starred out.
for n in {0000..9999}; do
echo "[+] testing UoMYTrfrBFHyQXmg6gzctqAwOmw***** " $n;
var=$(echo "UoMYTrfrBFHyQXmg6gzctqAwOm***** " $n | nc localhost 30002) >> output.txt
if [[ ! $var =~ "Wrong" ]]