2/02/2013 Google Search with bash


yesterday i was just curious about lynx and google search engine,so we  can use bash for get quick results   an automate the process,also i want  to filter the url,using sed or awk .


 the first thing is stablish the url for a proper search for this example i wanna to  use this

http://www.google.com/search?q=keywordforsearchhere&start=pagenumberhere
where the search?q= interpret the proper keyword. and &start= is the number of page,as a text browser i use lynx followed of -dump and -listonly options,lynx provide many command line options but for this test i just use the above -dump for formatted output of the default document and -listonly that show only the list of links.

for the first test  i use  keyword=house and page=1

lynx "http://www.google.com/search?q=house&start=1" -dump -listonly

it gives a result like in the pastie

http://pastie.org/private/jlaakeglj0fsfga27tmoqg
the final result :
lynx "http://www.google.com/search?q=house&start=1" -dump -listonly | grep 'url?q=' | cut -d ' ' -f4 | sed 's/http:\/\/www.google.com\/url?q=//' | sed 's/\(&sa=\).*//' 
finally :
#!/bin/bash 
#Google search using bash tools
#we need $1 the keyword 
count=0 #page number

while [ "$count" -le 200 ]
do
    lynx "http://www.google.com/search?q=$1&start=$count" -dump -listonly | grep 'url?q=' | cut -d ' ' -f4 |
    sed 's/http:\/\/www.google.com\/url?q=//' | sed 's/\(&sa=\).*//' 
    count=$(( $count +5 ))
done
echo
Ciao
Digg it StumbleUpon del.icio.us

2/01/2013 China vs USA

Always  china vs usa since i've heard about  significant improvement in security to better protect industrial secrets related to new products,is imposible hide facts like this .


New York Times hit by cyber attack: The New York Times reportedlate Wednesday that it had been the victim of a cyber attack for the last four months while working on a story about Chinese prime minister Wen Jiabao and his business connections.
According to the report, hackers based in China have been targeting the newspaper’s computer systems and and working to get passwords associated with the publication’s reporters and other employees. The Times shared information on the attacks with the FBI and eventually tracked the source of the attacks. No consumer data was taken from the site, the report said.
Twitter has a brief outage: Twitter confirmed that some users were unable to access the service Thursday, marking the second time this month that the micro-blogging service has been hit with an outage.
The company said on its status blog that it was working to resolve the issue. Compuware’s Outage Analyzer tool indicated that users across North America and Europe may have been affected by the problem, but it’s not clear how many of the site’s estimated 200 million active users were unable to reach the service.
The service was also temporarily unavailable on Inauguration Day, Jan. 21.
Showrooming shoppers don’t always buy online: Brick-and-mortar retailers may be seeing early success with efforts to combat “showrooming” — the habit of shoppers who look at products in stores but then buy those products online at a lower price.
Data released Thursday by the Pew Internet and American Life Project  showed that nearly half of those who consulted their mobile phones for online prices, 46 percent, ended up in line at the cash register — an 11-point increase from 2011.
Just 12 percent of those surveyed left stores to buy the products online, said Pew research associate Aaron Smith. He said that the survey didn’t delve into the shoppers’ motivations but that he thinks new retailer efforts, such as online price-matching, may have contributed to rise in in-store purchasing.
Cyberwarfare  is  growing up fastly,all goverments are entering to the game but what happend with Colombia,supposedly  there is a  CERT... https://twitter.com/colCERT

Docs:
https://www.dnp.gov.co/LinkClick.aspx?fileticket=-lf5n8mSOuM%3D&tabid=1260

http://programa.gobiernoenlinea.gov.co/apc-aa-files/5854534aee4eee4102f0bd5ca294791f/DisenodeunCSIRTColombiano.pdf


Where can i report a vulnerability?
Is ColCert an acronym(just kidding)?
What does it stand for ?
Is most than a twitter account ?
Is there any plan for take this out there ?...


Digg it StumbleUpon del.icio.us

1/16/2013 ThinkPad Torture Test ?

My near friend michael has sent me this out yesterday...i wonder why the opposite laptop is always Hewlett Packard  ! :P





I like thinkpad series...


Digg it StumbleUpon del.icio.us