Saturday, April 26, 2014

How to install scrapy on windows 7

Scrapy is a python library and is used to scrap and crawl the data from web. Here are the steps to install scrapy 

1. Install python 2.7
First install python 2.7 from https://www.python.org/
Direct Link: https://www.python.org/ftp/python/2.7.6/python-2.7.6.msi

2. Set Environment Variables
Add following paths in PATH variable
C:\Python27
C:\Python27\scripts
Here is a guide how to add system variables
http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/


3. Install Visual C++ 2008 redistributables
Direct Link: http://www.microsoft.com/en-us/download/details.aspx?id=29

4. Install OpenSSL
Website: http://slproweb.com/products/Win32OpenSSL.html
Direct Link: http://slproweb.com/download/Win32OpenSSL-1_0_1g.exe
again add C:\OpenSSL-Win32\bin in your environment variables


5. Install Setuptools and pip
Setup Tools: https://pypi.python.org/pypi/setuptools
PIP : http://www.lfd.uci.edu/~gohlke/pythonlibs/tid72nv9/pip-1.5.4.win32-py2.7.exe

6. pywin32
Direct Link: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe/download

7. Install Twisted-13.0.0.win32
Direct Link: https://pypi.python.org/packages/2.7/T/Twisted/Twisted-13.0.0.win32-py2.7.msi#md5=c2d453a344f56cf6f77204c5769288c0

8. Install zope interface
Direct Link: https://pypi.python.org/packages/3.2/z/zope.interface/zope.interface-4.0.5-py3.2-win32.egg#md5=996d063bcbf7d5970ccc7f568de07a7e

9. Install LXML
Direct Link: https://pypi.python.org/packages/2.7/l/lxml/lxml-3.4.1.win32-py2.7.exe#md5=2c7a54129d03f41bddbe709892bb0406 

10 Install pyopenssl
Direct Link:
https://launchpad.net/pyopenssl/main/0.11/+download/pyOpenSSL-0.11.winxp32-py2.7.msi


11. Install scrapy
Run this command
pip install scrapy

Tuesday, July 30, 2013

PHP VS RUBY ON RAILS

In today’s technology centered environment, there are often clashes between PHP and Ruby on rails programmers for their language supremacy. People should have a clear idea that PHP is a language and Ruby on rails is language over a framework. So, comparing PHP Vs Ruby on Rails wouldn’t be ideal one. However, I have tried to provide few insights on this comparison.

Most interesting talks these days in tech world is PHP replaced perl and now it is more likely ROR would replace PHP. I would certainly disagree with these, as PHP has been built to overcome difficulties based by programmers in perl. Similarly ruby in rails is built by programmers after drawbacks in languages PHP, ASP and perl.

PHP growth rate is stagnating for the past few years, whereas Ruby on rails has been growing tremendously. It is mainly because most developers want to be more sophisticated in their development.

Following are few general differences which could be list out,
Application performance:
PHP coding runs faster than that of Ruby on rails code. However, we can achieve tasks in ROR with few lines of code compared with that of PHP coding.

Web hosting:
Most of the webs hosting companies do support PHP applications, whereas Ruby on rails would be supported only by unix based server. Still Control panel for Rails 3.0 framework have not been implemented. On hosting front, PHP is clear winner. With introduction of Heroku, ROR applications can be hosted easier.

Testing:
In PHP, testing code and modules is difficult one. However, in Ruby on rails with introduction of R-spec testing rails code is an easy cake for developers.Ruby on Rails development will be helpful in creating bug-free application. In CakePHP you can do those testing, with certain code changes.

Code Structure:
ROR has clear code structure compared to that of PHP.

Frameworks:
PHP has more compatible frameworks like CakePHP, codeigniter and Zend. In Ruby too, apart from rails there are many good frameworks like Sinatra, vintage etc. Both languages has very good MVC architectural framework.

Syntax:
Both languages’ syntax are clear and simple. However, Ruby without ending syntax was not acceptable many programmers.

Memory:
PHP along with its fireworks utilizes less memory space, whereas Ruby on rails would use more space. Hence, application based on Ruby on rails would be slower compared to that of PHP.

In the war of PHP Vs ROR, developers shouldn’t have any issues in learning both technologies. You could choose technology depending on resource availability and requirements. Ruby on rails is gaining momentum and PHP has proven track record of matured programming language.

ORIGINAL SOURCE

Wednesday, March 20, 2013

Firesheep - A Firefox extension that demonstrates HTTP session hijacking attacks.

Firesheep, a Firefox extension designed to demonstrate just how serious this problem is.


After installing the extension you'll see a new sidebar. Connect to any busy open wifi network and click the big "Start Capturing" button. Then wait.

System Requirements

  • Mac OS X: 10.5 or newer on an Intel processor.
  • Windows: XP or newer. Install Winpcap first!
  • Linux: Not currently supported.
  • Firefox: 3.6.12 or newer. 32-bit only. Firefox 4.x beta not supported.

Download

Getting Help

More Information

Wireless Network Hacking | Download Wi-fEye



Wi-fEye is designed to help with network penetration testing, Wi-fEye will allow you to perform a number of powerful attacks Automatically, all you have to do is to lunch Wi-fEye, choose which attack to perform, select your target and let Wi-fEye do the magic !!.

Wi-fEye is divided to four main menus:

Cracking menu: This menu will allow you to:
Enable monitor mode
View avalale Wireless Networks
Launch Airodump-ng on a specific AP
WEP cracking: this will allow you to perform the following attacks automatically:

- Interactive packet replay.
- Fake Authentication Attack.
- Korek Chopchop Attack.
- Fragmentation Attack.
- Hirte Attack (cfrag attack).
- Wesside-ng.

WPA Cracking: This contains the following attacks:

- Wordlist Attack
- Rouge AP Attack.



2. Mapping: this menu will allow you to do the following:
Scan the network and view the connected hosts.
Use Nmap Automatically.

3. MITM: this menu will allow you to do the following Automatically:
Enable IP forwarding.
ARP Spoof.
Launch ettercap (Text mode).
Sniff SSL/HTTPS traffic.
Sniff URLs and send them to browser.
Sniff messengers from instant messengers.
Sniff images.
DNS Spoof.
HTTP Session Hijacking (using Hamster).

4. Others: this menu will allow you to o the following automatically:
Change MAC Address.
Hijack software updates (using Evilgrade).


Click to Download

Get Someone's IP Through AIM/MSN/Chat

Found a great website that logs IPs and gives you the lat/long./isp.

1)Create Account


http://www.chatrack.frihost.net/index-1.php


2)Get one of the links and tell someone on AIM or whatever to click it, choose any of the images and tell them you painted it or some stupid shit like that.


3)When they look at the image, it logs their IP.


4)Bonus points:


-Tell them its animated and 20 seconds in it will change, this allows the website to have time to ensure all their info is retrieved.

Friday, March 15, 2013

Advanced GOOGLE Search Techniques

Advanced GOOGLE Search Techniques

Google, undoubtedly is the most popular search engine. May be you are using google for a long time, but do you know the advanced searching techniques to get the best results out of google?

It's never too late. A few search techniques you must know, are below. For ease of understanding, each technique is explained with an example.....

1>Type in Google :- nokia phone 
Result :- the words "nokia" and "phone"
2>Type in Google :- sailing OR boating 
Result :- either the word sailing or the word boating
3>Type in Google :- "love me tender" 
Result :- the exact phrase love me tender
4>Type in Google :- printer -cartridge 
Result :- the word printer but NOT the word cartridge
5>Type in Google :- Toy Story +2 
Result :- movie title including the number 2
6>Type in Google :- ~auto 
Result :- looks up the word auto and synonyms

7>Type in Google :- define:serendipity 
Result :- definitions of the word serendipity
8>Type in Google :- how now * cow 
Result :- the words how now cow separated by one or more words
9>+ 
addition; 
Type in Google :- 978+456
10>-
subtraction; 
Type in Google :- 978-456
11>* 
multiplication; 
Type in Google :- 978*456
11>/ 
division; 
Type in Google :- 978/456
12>% of 
percentage; 
Type in Google :- 50% of 100

13>^ 
raise to a power; 
Type in Google :- 4^8
14>old in new (conversion) 
Type in Google :- 45 celsius in Fahrenheit
15>site:(search only one website) 
Type in Google :- site:websearch.about.com "invisible web"
16>link:(find linked pages) 
Type in Google :- link: ranasaani.blogspot.com
17>#...#(search within a number range) 
Type in Google :- nokia phone $200...$300
18>daterange:(search within specific date range) 
Type in Google :- bosnia daterange:200508-200510
19>safesearch: (exclude adult content) 
Type in Google :- safesearch:breast cancer
20>info: (find info about a page)
Type in Google :- info:www.websearch.about.com

21>related: (related pages)
Type in Google :- related:www.websearch.about.com
22>cache: (view cached page) 
Type in Google :- cache:google.com
23>filetype:(restrict search to specific filetype) 
Type in Google :- zoology filetype:ppt
24>allintitle: (search for keywords in page title) 
Type in Google :- allintitle:"nike" running
25>inurl:(restrict search to page URLs) 
Type in Google :- inurl:chewbacca
26>site:.edu (specific domain search) 
Type in Google :- site:.edu, site:.gov, site:.org, etc.
27>site:country code (restrict search to country) 
Type in Google :- site:.br "rio de Janeiro"
28>intext:(search for keyword in body text) 
Type in Google :- intext:parlor

29>allintext: (return pages with all words specified in body text)
Type in Google :- allintext:north pole
30>book(search book text) 
Type in Google :- book The Lord of the Rings
31>phonebook:(find a phone number) 
Type in Google :- phonebook:Google CA
32>bphonebook: (find business phone numbers) 
Type in Google :- bphonebook:Intel OR
33>rphonebook:(find residential phone numbers) 
Type in Google :- rphonebook:Joe Smith Seattle WA
34>movie:(search for showtimes) 
Type in Google :- movie:wallace and gromit 97110
35>stocks:(get a stock quote) 
Type in Google :- stocks:ncesa
36> weather:(get local weather) 

Type in Google :- weather:97132

Tuesday, March 5, 2013

How to run android applications on computer


Its very simple to run the android applications on computer . 

Follow these steps

Step 1:
  1. Download BlueStacks on your Computer from this link  http://www.softpedia.com/get/Mobile-Phone-Tools/Others/BlueStacks.shtml
  2. After Download BlueStacks, Run Setup file and Install BlueStacks on your Computer.
  3. Restart computer after installation. Now BlueStacks is Installed on Your Computer.
Step 2: 
  1. Download any Android App on your PC.
  2. Browse the Folder where the app is downloaded
  3. Right Click on App (with .apk extenstion)
  4. Select "Open With"
  5. Click on "Browse"
  6. Browse to C:\ProgramFiles\BlueStacks-Android Apk Handler Application Program
  7. Click "OK"
  8. Double Click on the App that you want to Install
  9. Installation will start 
  10. Confirmation message will display in pop-up
  11. Run BlueStacks Program from Desktop
  12. You can see your installed app in BlueStacks