Skip to content

Commit

Permalink
migrate from github.com/alloygoh
Browse files Browse the repository at this point in the history
  • Loading branch information
alloygoh committed Sep 24, 2018
1 parent 66b96c4 commit 8dfe162
Show file tree
Hide file tree
Showing 10 changed files with 66,570 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EasyCTF_IV/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# EasyCtf_IV
This repo contains the scripts used for Easyctf IV
1 change: 1 addition & 0 deletions EasyCTF_IV/Zippity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Contains the python file for the Zippity Challenge
33,130 changes: 33,130 additions & 0 deletions EasyCTF_IV/Zippity/zipcode.txt

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions EasyCTF_IV/Zippity/zippity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env python3
#Done by ScriptBaby
#EasyCTF IV

from pwn import *

f = open("zipcode.txt","r")
content = f.read()
content = content.replace("VM78:2","")
content = content.split("\n ")

def sendResponse(type,zipcode):
for line in content:
line = line.split("/")
if(zipcode == line[0]):
return(line[type])

p = remote("c1.easyctf.com", 12483)

p.recvuntil('Go!')
for x in range(50):
p.recvuntil("What is the ")
datatype = p.recv(10)
p.recvuntil("zip code ")
zipcode = p.recv(5)
p.recv(1)
print("Round: %r, %r, %r"%(x+1,datatype, zipcode))
if ("land area" in datatype):
print(sendResponse(1,zipcode))
p.sendline(sendResponse(1,zipcode))
elif ("water area" in datatype):
print(sendResponse(2,zipcode))
p.sendline(sendResponse(2,zipcode))
elif ("latitude" in datatype):
print(sendResponse(3,zipcode))
p.sendline(sendResponse(3,zipcode))
elif ("longitude" in datatype):
print(sendResponse(4,zipcode))
p.sendline(sendResponse(4,zipcode))
p.recv()
print(p.recv())

2 changes: 2 additions & 0 deletions NeverLanCTF-2018/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# NeverLanCTF-2018
This repo contains the scripts used for NeverLanCTF 2018
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Here is the script used to solve the challenge
Loading

0 comments on commit 8dfe162

Please sign in to comment.