Author: Ahmad
Date: December 4, 2014
simple standalone bar u can implement it on your code it will show a progress bar of items range from time import sleep import sys for i in range(21): sys.stdout.write(‘\r’) # the exact output you’re looking for: sys.stdout.write(“[%-20s] %d%%” % (‘=’*i, 5*i)) sys.stdout.flush() sleep(0.25)
Author: Ahmad
Date: December 4, 2014
Categories:
Python,
SecurityHello this is a simple script to find the duplicated files by md5sum so if u have 2 files with the same content but with different names, u still can catch them #duplicate file finder by file md5sum #author N1X import sys import os import subprocess from os.path import join, abspath from os import walk from … Read More
Author: Ahmad
Date: December 4, 2014
Categories:
Python,
Securityhello, guys, this script will simply mount the container with the password form the given password list #!/usr/bin/env python #TrueCrypt Crack Passowrd Based In Dic Attack #Author : N1X import subprocess import sys file = open(sys.argv[2]) passlist=file.readlines() for password in passlist: print password.strip() command = “truecrypt -t –non-interactive %s -p %s” %(sys.argv[1],password.strip()) p = subprocess.Popen(command,shell=True,stderr=subprocess.PIPE) … Read More
Author: Ahmad
Date: December 4, 2014
ORM Notes objects.all() objects.all().count() objects.filter(published=True).count() objects.filter(published=True).exists() objects.filter(published=True)[:2] objects.filter(published=True).values(‘title’,’created’)[:2] objects.filter(published=True).order_by(‘created’) objects.filter(published=True).order_by(‘-created’) objects.filter(published=True, created__gt=datetime(2011,05,01)) objects.filter(published=True, created__lt=datetime(2011,05,01)) objects.filter(published=True, created__lt=datetime(2011,05,01)).count() objects.filter(published=True, created__lt=datetime(2011,05,01)).order_by(‘id’) objects.filter(published=True, created__year=2011.order_by(‘id’) objects.filter(published=True, created__month=5, created__year=2011.order_by(‘id’)
Author: Ahmad
Date: December 4, 2014
python script to demonstrate the splinter library this script keep searching till finding a ticket and book it 🙂 rest and wait your reservation number
Author: Ahmad
Date: December 4, 2014
simple python script to bitcoin price speech is the target price reached it takes argument 1 as a target price simple but still useful to monitor bitcoin price via speech
Author: Ahmad
Date: December 3, 2014
Categories:
Security,
techstill smashing 😀 level5@io:/levels$ ./level05 level5@io:/levels$ ./level05 a a level5@io:/levels$ echo one 😀 let’s see the source code level5@io:/levels$ cat level05.c #include #include int main(int argc, char **argv) { char buf[128]; if(argc < 2) return 1; strcpy(buf, argv[1]); printf(“%s\n”, buf); return 0; }
Author: Ahmad
Date: December 3, 2014
level 4 😀 level4@io:~$ cd /levels/ level4@io:/levels$ ./level04 Welcome level5 level4@io:/levels$ ./level04 d Welcome level5 level4@io:/levels$ ./level04 $(python -c “print ‘A’ * 1024”) Welcome level5 so i will read the code int main() { char username[1024]; FILE* f = popen(“whoami”,”r”); fgets(username, sizeof(username), f); printf(“Welcome %s”, username); return 0; } popen to execute whoami
Author: Ahmad
Date: December 3, 2014
loaded the virtual machine and run netdiscover to get the machine IP oot@n1x:~# netdiscover Currently scanning: 192.168.39.0/16 | Screen View: Unique Hosts 4 Captured ARP Req/Rep packets, from 4 hosts. Total size: 240 _____________________________________________________________________________ IP At MAC Address Count Len MAC Vendor —————————————————————————– 192.168.1.1 e8:94:f6:5d:c6:3b 01 060 Unknown vendor 192.168.1.2 00:18:fe:6d:61:27 01 060 Hewlett Packard … Read More
Author: Ahmad
Date: December 1, 2014
Categories:
Security,
techpretty good level I learned a few new stuff so lets hit the game level3@io:/levels$ ./level03 level3@io:/levels$ ./level03 9 level3@io:/levels$ ./level03 $(python -c “print ‘a’ * 10000 “) Segmentation fault fighting with the app till it crashes and hell yeah we start from fault 😀 so we need to see what’s going on level3@io:/levels$ gdb … Read More