Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

program for google search


ghost's Avatar
0 0

there is any program to google for sites and save the sites in the txt file????:p


ghost's Avatar
0 0

somthing like firefox ? ???? o.O


ghost's Avatar
0 0

i mean to use (i.e) google to find site and then to save the urls(i.e: http://hel…. , http://yahoo.com…. ) in a txt file and not click , when i want to see the sites…. ( i want to use a program to open the sites i have found in google search from a txt file….:p


ghost's Avatar
0 0

i want to add the "'" and others… at the end of url …. to try sql injection ( writing a php script….)…:@


ghost's Avatar
0 0

no, for the while i use only php…. but i want to have the urls i a txt file …. any help about that????


ghost's Avatar
0 0

Use regex functions to eliminate <tags> from html code.


ghost's Avatar
0 0

Its a bit hard to say because it's a bit hard to understand why u would want to do it. Could you not include the URLs in the script somewhere? Why does it need to be a txt file? What is the point of the program u want to make? If you give us all a few more details, we may be able to help you more….


ghost's Avatar
0 0

<?php $mystring = "Microsoft"; $fp1 = fopen('/…../something.txt', 'r'); $fp2 = fopen('/………….l/something2.txt', 'w');

while($buffer = fscanf($fp1, "%s")){ list($url)=$buffer; echo '<script>alert("Open the url..:'.$url.'")</script>';

$handle = fopen( $url, "r" ); $contents = stream_get_contents( $handle ); $c = str_word_count( $contents ); if( eregi( $mystring, $contents ) ){

   echo &quot;&lt;script&gt;alert(&#92;&quot;&#39;&quot; . $mystring . &quot;&#39; found!&#92;&quot;)&lt;/script&gt;&#92;n&quot;;
   echo &#39;&lt;script&gt;window.open(&quot;&#39;.$url.&#39;&quot;);&lt;/script&gt;&#39;;
   echo &quot;Word count: &quot; . $c . &quot;&#92;n&quot;;}



    fwrite($fp2,$url.&quot;&#92;n&quot;);

}

fclose($fp1); fclose($fp2);

?>

the something.txt is the txt file , from that i take the url i want to inject… and in the something2.txt write the url is vuln.. but i have on other problem… when i add in url the " ' " (i.e:http://www.conservationregister.com/login.asp?id='" he returns the server:Warning: fopen(http://www.conservationregister.com/login.asp?id=&#39;) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /…../dokimes/dokimi2.php on line 5…. how can i solve this problem????


ghost's Avatar
0 0

i'll do it…


ghost's Avatar
0 0

can anyone help me to solve the problem: when i add in url the " ' " (i.e:http://www.conservationregister.com/login.asp?id='" he returns the server:Warning: fopen(http://www.conservationregister.com/login.asp?id=&#39;) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /…../dokimes/dokimi2.php on line 5…. i use the xampp and i made my pc server!!!!…


ghost's Avatar
0 0

howcan i'l do it that??? i use Xampp for Linux and i made my pc server to run scripts with php…..


Uber0n's Avatar
Member
0 0

moshbat wrote: Are you able to include pages outside your own server? (I can't remember what it's called, sorry) It's called making RFI exploits easier :happy:


ghost's Avatar
0 0

please help me with this script in php: We have this txt file and we wont to get the http://65.127.137.224/board/login.asp?id=dd… with whose commands in php we can do this????

<h2 class=r><a href="http://65.127.137.224/board/login.asp?id=dd" class=l onmousedown="return clk(this.href,'','','res','1','')">Family Federation for World Peace and Unification of U.S.A.</a></h2>


ghost's Avatar
0 0

any help about my previous post in php? there are some command in php to cut a url from a txt file????:(


ghost's Avatar
0 0

Why exactly are you wanting to do this versus using google its self? Yeah it's possible, it would be a hefty script probably in PHP. U'r probbly gonna have to use preg_match_all but there will be some big limitations like you can probably only return the first page of results. I can see it being possible, I can see it being a HUGE pain in the ass to script too though.


ghost's Avatar
0 0

i want to read a page from google search and i want to take the urls and save them in a txt file… (only the urls)….


ghost's Avatar
0 0

Well then regular expressions (regex) is what you need to study up on. I'm certainly not gonna go through the trouble for such a seemingly pointless script >_>


ghost's Avatar
0 0

how can i cut the url http://65.127.137.224/board/login.asp?id=dd from the txt file bellow … with php script??? i read a lot of forums in php but i'm confused about this… any help??

<h2 class=r><a href="http://65.127.137.224/board/login.asp?id=dd" class=l onmousedown="return clk(this.href,'','','res','1','')">Family Federation for World Peace and Unification of U.S.A.</a></h2>