url: http://ctf.infosecinstitute.com/levelone.php
flag: infosec_flagis_welcome
solution: Just see the first line of the source
url: http://ctf.infosecinstitute.com/leveltwo.php
flag: infosec_flagis_wearejuststarting
solution:
#!/bin/bash | |
# This script connects the computer to a vpn server using openconnect without pain | |
prog_name=$(basename $0) | |
# CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com | |
domain=YOUR_VPN_SERVER_DOMAIN | |
function help { |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
import ast | |
import sys | |
URL = 'http://icpc.sharif.edu/acmicpc%s/scoreboard/' % sys.argv[1][-2:] | |
r = requests.get(URL) | |
soup = BeautifulSoup(r.text, 'html5lib') |
import matplotlib.pyplot as plt | |
# in Kbps | |
F = 10 * 10**6 | |
us = 20 * 1000 | |
dmin = 1000 | |
def client_server(n): | |
return max(n*F/us, F/dmin) |
url: http://ctf.infosecinstitute.com/levelone.php
flag: infosec_flagis_welcome
solution: Just see the first line of the source
url: http://ctf.infosecinstitute.com/leveltwo.php
flag: infosec_flagis_wearejuststarting
solution:
#!/bin/bash | |
# Sorts the images which are scanned by a scanner in the following way: (last file index is 20 for e.g.) | |
# pages 1,3,5,... are named scan0000.jpg, scan0001.jpg, scan0002.jpg,... | |
# then pages 2,4,6,... are named scan0020.jpg, scan0019.jpg, scan0018.jpg, ... | |
# The script sorts them in range 000 to 020 | |
mkdir -p final | |
end=`ls scan* -1 | wc -l` | |
flag=0 |
#include <stdio.h> | |
int digits, level; | |
int number[20]; | |
int used[10]; | |
void print() { | |
for (int i = 0; i < digits; i++) | |
printf("%d", number[i]); | |
printf("\n"); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |