User Tag List

Results 1 to 7 of 7

Thread: Website source code grabber

  1. #1

    Default Website source code grabber

    Perl.

    Code:
    #WebGrab.pl
    #By Saibal
    #Ver 1.3
    use Net::HTTP;
    
    print "Welcome to Saibal's Source Code Grabber\n";
    print "******************Enjoy*****************\n\n";
    
    print "Website to Grab: ";
    chop ($site=<STDIN>);
    
    print "Connecting to $site...";
     my $s = Net::HTTP->new(Host => "$site") || die [email protected]; #Connect to site
     $s->write_request(GET => "/", 'User-Agent' => "Mozilla/5.0");
     my($code, $mess, %h) = $s->read_response_headers;
    print "\nConnected.";
    print "\nAccessing HTML code...\n";
    
     while (1) {
        my $buf;
        my $n = $s->read_entity_body($buf, 1024);
        die "read failed: $!" unless defined $n;
        last unless $n;
        print $buf; #Display the source code
     }

  2. #2
    Member soul's Avatar
    Join Date
    Apr 2008
    Location
    Dhaka, Bangladesh, Bangladesh
    Posts
    474

    Default

    what will happen if i put those code?

    I'll start again
    And whatever pain may come
    Today this ends
    I'm forgiving what I've done

  3. #3

    Default

    You get access to the website source code, which is usually html.

  4. #4
    VIP Member
    • 's Gadgets
      • Motherboard:
      • CPU:
      • RAM:
      • 6GB (2+4 GB) DIMM DDR3 1333Mhz
      • Hard Drive:
      • 500GB SATA II 7200RPM
      • Graphics Card:
      • NVIDIA GT335M 1GB
      • Display:
      • Primary 11.6&quot;, Secondary 20&quot;
      • Controller:
      • Logitech RP2
      • Operating System:
      • Genuine Windows(R) 7 Home Premium 64bit
      • ISP:
      • Qubee
      • Download Speed:
      • 128kBps
      • Upload Speed:
      • 128kBps
    Noob™'s Avatar
    Join Date
    Feb 2008
    Location
    mirpur-1, dhaka
    Posts
    5,343

    Default

    is it something different from the one u get by ri8 clk > view source in ie/opera/firefox?

  5. #5

    Default

    That's the page source. This is for the whole website.

  6. #6

    Default

    how do you use this perl code ..

  7. #7

    Default Re: Website source code grabber

    Inject it. Or compile into a DLL and inject through that (much safer).

    The website would need to have some exploits first to do it though.

Similar Threads

  1. Favourite TeaM OF ALL ToP plaYers in Fifa
    By KinG SRS in forum Top FIFA Players
    Replies: 40
    Last Post: June 18th, 2012, 15:32
  2. Test Drive Unlimited
    By Asif in forum Racing
    Replies: 12
    Last Post: May 17th, 2009, 14:32
  3. Warcraft III : Frozen Throne
    By GG.AIM in forum Warcraft III
    Replies: 171
    Last Post: September 5th, 2008, 20:00
  4. Painkiller Overdose
    By Ryuzaki San™ in forum FPS
    Replies: 0
    Last Post: March 9th, 2008, 02:00

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 0.18414 seconds with 14 queries.