Uncategorized

Taking apart laptop guide

Aside Posted on


Go to
youtube.com/itsolutionpokhara for all videos

Installing and Customizing SteamOS

Posted on Updated on


What are the SteamOS Hardware Requirements?

Processor:
Intel or AMD 64-bit capable processor
Memory:
4GB or more RAM
Hard Drive:
500GB or larger disk
Video Card:
NVIDIA graphics card
(AMD and Intel graphics support coming soon!)
Additional:
UEFI boot support
USB port for installation

How do I install SteamOS?

There are two different installation methods for SteamOS. The recommended method is the Default Installation method, which is a pre-configured image-based install using CloneZilla. The other method uses Debian Installer, which allows for customization after an automated install step. Please choose one of those methods below.
WARNING: Both installation methods will erase all content on the target computer Read the rest of this entry »

[Tut] Create a wordlist generator (i.e. for bruteforcing)

Posted on


This is a little guide for making a wordlist generator. It will give you some programming practice as well as some understanding in combinatorics. I will use Java, but the way should be understandable for coders who don’t know Java. But I take as a given that you understand numeral systems (at least the binary one).

The wordlist generator shall be fast and generate all possible words for a given alphabet and a wordlength. So we can begin with defining them. We keep it simple, so we can easily prove the results later. We generate words with a length of 3 and the alphabet will contain only 0 and 1. It is important to prepare it in a way that we can change these later without any problems.

The sceleton of our generator with the first local variables defined looks like this:

  1. public class WordListGen {
  2.     public static void main(String[] args) {
  3.         generate();
  4.     }
  5.     private static void generate() {
  6.         int wordlength = 3;
  7.         char[] alphabet = { ’1′, ’0′ };
  8.     }
  9. }

Before we really start with programming let’s make sure you understand what the result has to be in the end.
A wordlength of three means we have three positions for a word to fill with characters: _ _ _
The alphabet says which characters can fill the positions. Doing this manually we have the following possibilities to arrange the characters:

000
001
010
011
100
101
110
111

Those are eight possible words. As I said you should have an understanding of numeral systems. If so, you can easily see that the results are the numbers from 0 to 7 (decimal) in the binary system. Getting all results for this particular generation just needs us to count from 0 to 7 and translate this to binary.

But we want to make the generator flexible so the alphabet can be easily changed. So we need a solution that works for everything.
How do we get the number of results?
Now we dive into combinatorics. We can compare this situation to an urn that contains the characters ’1′ and ’0′. We have three turns and every single turn we take a character, write it on a paper and put it back to the urn. The order of the results is important, because “001″ is another word than “100″. That means our case is a variation with repetition (<- because we put the characters back every turn). We can get the number of results by using the formula for variation with repetition: N^k

k is the number of positions or the wordlength.
N is the number of characters in the alphabet.

Applied to our current situation we have characters^wordlength = 2^3 = 8 results and that is correct.
Let’s compute this number in our program. For Java there is Math.pow to do exponentiation.

Code: Java
  1. final long MAX_WORDS = (long) Math.pow(alphabet.length,
  2.                 wordlength);

What we do next is just counting from 0 to (MAX_WORDS – 1) which is 0 to 7. This produces our words as decimal numbers:

Code: Java
  1. for (long i = 0; i < MAX_WORDS; i++) {
  2. }

But we don’t want the decimals. We want the numbers in our numeral system. The radix of the numeral system is the number of characters, our case 2 which is the binary system. We compute the radix like that:

Code: Java
  1. final int RADIX = alphabet.length;

Most languages provide out-of-the-box functions to translate numbers to a given numeral system. However, we only need integer representations and no letters. I.e. the hexadecimal system (radix 16) uses 0-9 and the letters A-F. We use 0-15 instead for this example. This way we make sure that we can use every radix and thus large alphabets that may contain more than 35 characters. Also making our own method for that is much more efficient.

 

  1. private static int[] convertToRadix(int radix, long number, int wordlength) {
  2.     int[] result = new int[wordlength];
  3.     for (int i = wordlength - 1; i >= 0; i–) {
  4.         if (number > 0) {
  5.             int rest = (int) (number % radix);
  6.             number /= radix;
  7.             result[i] = rest;
  8.         } else {
  9.             result[i] = 0;
  10.         }
  11.     }
  12.     return result;
  13. }

To explain how this conversion method works I use an example: number = 5, radix = 2, wordlength = 3
First we create our array of the length 3. So we provide three places to put numbers in: _ _ _
We run through this array backwards. Our number is not 0, so we divide the number by the radix. We put the rest of this operation (computed via the modul operator %) into the array:
number / radix = 5 / 2 = 2 rest 1
Our array: _ _ 1
The new number is the result of the division = 2

Now we repeat that:
number / radix = 2 / 2 = 1 rest 0
Our array: _ 0 1
The new number is the result of the division = 1

Last turn:
number / radix = 1 / 2 = 0 rest 1
Our array: 1 0 1

And this is the correct result for our decimal to binary conversion.

The whole code by now:

  • private static void generate() {
  •     int wordlength = 3;
  •     char[] alphabet = { ’0′, ’1′ };
  •     final long MAX_WORDS = (long) Math.pow(alphabet.length, wordlength);
  •     final int RADIX = alphabet.length;
  •     for (long i = 0; i < MAX_WORDS; i++) {
  •         int[] indices = convertToRadix(RADIX, i, wordlength);
  •         for(int index : indices){
  •             System.out.print(index);
  •         }
  •         System.out.println();
  •     }
  • }
  •  

Our output looks promising:
000
001
010
011
100
101
110
111

Now let’s alter the alphabet. We choose the characters a and b:

Code: Java
  1. char[] alphabet = { ‘a’, ‘b’ };

If you have understood the code you will know that the output remains the same (the binaries above). The characters of the alphabet are never used. What we print out are the indices of the characters. We can easily change that by getting the characters of the alphabet and saving them into a char-array named word:

Code: Java
  1. char[] word = new char[wordlength];
  2. for (int k = 0; k < wordlength; k++) {
  3.     word[k] = alphabet[indices[k]];
  4. }
  5. System.out.println(word);

This is the whole program:

 

  1. public class WordListGen {
  2.     public static void main(String[] args) {
  3.             generate();
  4.     }
  5.     private static void generate() {
  6.         int wordlength = 3;
  7.         char[] alphabet = { ‘a’, ‘b’ };
  8.         final long MAX_WORDS = (long) Math.pow(alphabet.length, wordlength);
  9.         final int RADIX = alphabet.length;
  10.         for (long i = 0; i < MAX_WORDS; i++) {
  11.             int[] indices = convertToRadix(RADIX, i, wordlength);
  12.             char[] word = new char[wordlength];
  13.             for (int k = 0; k < wordlength; k++) {
  14.                 word[k] = alphabet[indices[k]];
  15.             }
  16.             System.out.println(word);
  17.         }
  18.     }
  19.     private static int[] convertToRadix(int radix, long number, int wordlength) {
  20.         int[] indices = new int[wordlength];
  21.         for (int i = wordlength - 1; i >= 0; i–) {
  22.             if (number > 0) {
  23.                 int rest = (int) (number % radix);
  24.                 number /= radix;
  25.                 indices[i] = rest;
  26.             } else {
  27.                 indices[i] = 0;
  28.             }
  29.         }
  30.         return indices;
  31.     }
  32. }

And this our output:

aaa
aab
aba
abb
baa
bab
bba
bbb

That is it. You may test this further with other wordlengths and alphabets. Whatever you do: Happy coding.

Deque

ANATOMY AND CONSTRUCTION OF SPAMBOTS

Posted on Updated on


A CONCISE PAPER ON SPAMBOT TECHNOLOGY, COUNTERMEASURES AND THEIR RESPECTIVE SHORTCOMINGS

INTRODUCTION AND DEFINITIONS



Before we begin to discuss methods of operation, classifications and technical workings of spambots, let us first define what a spambot actually is. Wikipedia defines a spambot as such: “A spambot is an automated computer program designed to assist in the sending of spam/” Spambots usually create fake accounts and send spam using them.”



This is obviously a very elementary and surface definition of a spambot, but it is essentially true. In more detail, a spambot is an automated script, usually a subclass of the common web crawler/scraper that is used to facilitate the sending of spam through a plethora of means, which vary depending on the type of applications it specializes in probing, harvesting information from and sending spam to. Due to their nature, they ignore web meta conventions such as robots.txt and no-follows.

Read the rest of this entry »

Buddha’s Lost Child ft. DEADBJ QUOTES

Posted on


god replied “I always pass through problems. I asked to GOD,’how long will u play game wid me ?’, thn he replied…’unless u become a WINNER” deadbj

do good be good_deadbj quote “Do good:be good: then ghosts will respect you. If you are going to left best, then hold the courage to face worst. If you can’t give respect, then never expect it in return. No matter how long, injuries heals. What matters most is injuries of soul” : deadbj

"If you cannot be the best, try not to be the worst" deadbj
“If you cannot be the best, try not to be the worst” deadbj

Try . . .

Posted on


Deadbj Quotes 

“If you cannot come first, TRY not to be counted as last . . . If you are not loved by anyone, TRY not to be hated by all . . . If you cannot rise up, TRY not to fall down . . . If you are not the best, TRY not to be the worst”

DEADBJ

 

 

“Do good, be good. Evil will respect you”

Posted on


"Do good,be good. Evil will respect you"
     “Do good,be good. Evil will respect you”

 

जन्मने बेला रुँदै जन्मने बालक, समय को परिवर्तन सँगै हाँसेर बाच्न चाहन्छ

Image Posted on


जन्मने बेला रुँदै जन्मने बालक, समय को परिवर्तन सँगै हाँसेर बाच्न चाहन्छ

“जन्मने बेला रुँदै जन्मने बालक, समय को परिवर्तन सँगै हाँसेर बाच्न चाहन्छ” : BY DEADBJ