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/python3 | |
| encoded = "ENCODED STRING HERE" | |
| all_alpha = "" # String of all lowercase english alphabets | |
| for i in range(ord('a'),ord('z')+1): | |
| all_alpha += chr(i) | |
| print("Encoded => " + encoded) | |
| print("All alphabets => " + all_alpha) |
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/python3 | |
| from pwn import * | |
| import sys | |
| # Checking argument | |
| if len(sys.argv) != 2: | |
| print("Usage: " + sys.argv[0] + " target") | |
| exit(0) |
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/python3 | |
| from pwn import * | |
| from queue import Queue | |
| from threading import Thread | |
| host,port = "jupiter.challenges.picoctf.org",13610 | |
| elf = ELF('./vuln') | |
| class Guesser: |
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/python3 | |
| from pwn import * | |
| import sys | |
| if len(sys.argv) != 2: | |
| warn("Usage: {} binary_filename".format(sys.argv[0])) | |
| exit(0) | |
| filename = sys.argv[1] |
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/python3 | |
| from pwn import * | |
| # Prologue | |
| context.log_level = 'error' | |
| elf = ELF('./vuln') | |
| context.log_level = 'info' | |
| host,port = "jupiter.challenges.picoctf.org",13610 | |
| proc = remote(host,port) |
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
| main(){ | |
| unsigned int random; | |
| int answer; | |
| /* CODE TO PRINT BANNER */ | |
| /* Seeding rand() with the current unix time below */ | |
| time_t seed = time(0); | |
| srand(seed); | |
| /* Loop that checks for correctness of user's guesses */ | |
| for(int i=1; i<=30; 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
| #include<stdio.h> | |
| #include<time.h> | |
| /* gcc -m32 -o sequence-generator sequence-generator.c */ | |
| /* Usage: ./sequence-generator [unix-time] */ | |
| int main(int argc, char* argv[]){ | |
| time_t seed; | |
| if(argc == 1){ | |
| seed = time(0); |
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/python3 | |
| from pwn import * | |
| from time import time | |
| import sys | |
| from random import randint | |
| if len(sys.argv) != 2: | |
| warn("Usage: {} <local|remote>".format(sys.argv[0])) | |
| exit(0) | |
| 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
| from pwn.toplevel import remote, log | |
| # Get ciphertext from encryption oracle for chosen username and password, and submit | |
| # ciphertext as solution optionally | |
| def get_username_password_ciphertext(username,password,ciphertext_to_submit = None): | |
| r = remote(host,port) | |
| r.sendafter("username: ",username) | |
| r.sendafter("password: ",password) | |
| r.recvuntil("Leaked ciphertext: ") | |
| ciphertext = r.recvline().decode().rstrip() |
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
| import styled from 'styled-components' | |
| import {WaterfallGrid} from 'react-waterfall-grid' | |
| import { useMediaQuery } from 'react-responsive' | |
| // You are free to add as many grid contents as you want. Here, you see only 4 pictures. | |
| import Image1 from './static/images/1.jpg' | |
| import Image2 from './static/images/2.jpg' | |
| import Image3 from './static/images/3.jpg' | |
| import Image4 from './static/images/4.jpg' |
OlderNewer