Skip to content

Instantly share code, notes, and snippets.

View avicoder's full-sized avatar
🖖
hmm hmm hmm hmm hmm

avicoder avicoder

🖖
hmm hmm hmm hmm hmm
View GitHub Profile
@avicoder
avicoder / gist:a7b3747ceafdab3e808a
Created November 27, 2014 10:49
Handy CSS Debug Snippet
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }
@avicoder
avicoder / Wifi Hotspot
Created April 23, 2015 06:46
Windows Wifi Hotspot { wifi name : Paladion-Hotspot, Password : paladion123!}
netsh wlan set hostednetwork mode=allow ssid=Paladion-Hotspot key=paladion123!
netsh wlan start hostednetwork

####Injection

  • Injection could be anything, It could be Sql, LADAP , XAPth, Mail Based injection or any other database.

  • Malicious request to modified query is an injection

  • Data exfiltration

  • Defences:

@avicoder
avicoder / JS-links.js
Last active July 23, 2016 13:45
Find all the hyperlinks in a webpage
@avicoder
avicoder / Arp-Scanner.py
Last active March 6, 2023 19:12
Simple arp scanner written in python (Scapy module)
#! /usr/bin/python
#Author == @avicoder
import sys,getopt
r = '\033[31m' #red
b = '\033[34m' #blue
g = '\033[32m' #green
y = '\033[33m' #yellow
_CONST SEGMENT ; or _DATA
$SG1234 DB 'Hello, World',0AH,00H
_CONST ENDS
_TEXT SEGMENT
push ebp
move ebp,esp
push OFFSET $SG1234
call _printf
add ebp,4
@avicoder
avicoder / enforce-https.js
Created July 23, 2016 07:17
Redirect/enforce website to use secure connection.
<script type="text/javascript">
var enforce = "avicoder.me";
if ((enforce == window.location.host) && (window.location.protocol != "https:"))
window.location = window.location.toString().replace(/^http:/, "https:");
</script>

Keybase proof

I hereby claim:

  • I am vjex on github.
  • I am avicoder (https://keybase.io/avicoder) on keybase.
  • I have a public key whose fingerprint is BBE5 FC5D 3AC2 BB78 C6A4 1D9D 4B0B A549 62AB A6CC

To claim this, I am signing this object:

@avicoder
avicoder / TS
Last active October 5, 2016 11:11
Fix, gdb shared lib
Try compiling using gcc -fno-builtin.
gdb: “No symbol table is loaded”
gcc -g prog.c

Challenge 0

"><svg onload=prommpt(1)>

Challenge 1

<img src=1 onerror=prompt(1)/

Challenge 2