Help with a program
1
Name:
Anonymous
2008-12-01 18:45
So /prog/ I want to write a java program that searches the internet. But i don't mean something gay like google i mean starts with
http://a.com then
http://b.com so on and so on searching every possibility including sub dirs and so on.
Where should I start
so far i have
import.java.util.*
2
Name:
Anonymous
2008-12-01 18:56
What?
import java.io.*
import java.net.*
4
Name:
noobs
2008-12-01 21:04
just hack google's servers and steal their code.
take a look at the movie swordfish to get an idea where to start your hacker training
5
Name:
Anonymous
2008-12-01 21:37
BRUTE FORCE THE INTERNET
6
Name:
Anonymous
2008-12-01 22:01
RAPE THE INTERNET
TAKE IT BY FORCE
7
Name:
Anonymous
2008-12-01 22:10
USE REGULAR EXPRESSIONS
8
Name:
Anonymous
2008-12-01 22:28
_ _ ___ ___ ___ ___ _ _ ___ _____ ___
| | | / __| __| | __|_ _| \| |_ _|_ _| __|
| |_| \__ \ _| | _| | || .` || | | | | _|
\___/|___/___| |_| |___|_|\_|___| |_| |___|
_ _ _ _____ ___ __ __ _ _____ _
/_\| | | |_ _/ _ \| \/ | /_\_ _/_\
/ _ \ |_| | | || (_) | |\/| |/ _ \| |/ _ \
/_/ \_\___/ |_| \___/|_| |_/_/ \_\_/_/ \_\
9
Name:
Anonymous
2008-12-01 22:50
>>7
NOW YOU HAVE TWO PROBLEMS
10
Name:
Saguser II
2008-12-01 23:02
Ten BBCODIZED rapes per second!
RAPE RAPE RAPE RAPE RAPE
RAPE RAPE RAPE RAPE RAPE
11
Name:
Anonymous
2008-12-01 23:13
import java.*
FINISHED!
12
Name:
Anonymous
2008-12-02 5:23
_ __ __ _ _ __ ___
| '__/ _` | '_ \ / _ \
| | | (_| | |_) | __/
|_| \__,_| .__/ \___|
|_|
13
Name:
Anonymous
2008-12-02 6:07
>>9
Is this some kind of Raymond Chen meme?
14
Name:
Anonymous
2008-12-02 18:06
>>13
レイモンド ちぇえええええええええええええええええええええん
15
Name:
Anonymous
2008-12-02 21:41
to actually brute-force the internet, you'd have to come up with a list of all possible ip addresses, a list of all possible domain names, and a list of all possible paths on a web server, and then do something like this (pseudo-code):
for ip in ip_addresses
for name in domain_names
for path in paths
connection = connect( address = ip, port = 80 )
send( connection, "GET " + path + " HTTP/1.1\nHost: " + name + "\n\n" )
close( connection )
you could probably speed it up a bit by connecting to several ip addresses in parallel, but it'd still be slow as fuck.
16
Name:
Anonymous
2008-12-02 21:42
>>15
also, please don't do that. the entire internet will hate you.
17
Name:
Anonymous
2008-12-02 22:27
>>15
actually, you'd have to try all possible ports as well. and other protocols like gopher and ftp.
18
Name:
Anonymous
2008-12-02 23:09
>>15
Fortunately we can construct the lists
ip_addresses ,
domain_names and
paths using brute force. I am implementing the algorithm outlined here as we speak.
19
Name:
Anonymous
2008-12-02 23:37
20
Name:
Anonymous
2008-12-03 0:10
#!/usr/bin/env perl
my(@ip_addresses, @domain_names, @paths);
my @ports=0..65535;
for $a (1..254) {
for $b (1..254) {
for $c (1..254) {
for $d (1..254) {
next if $a == 10 or $a == 127 or $a == 192 && $b = 168 or $a == 172 && $b >= 16 && $b <= 31;
push(@ip_addresses, "$a.$b.$c.$d");
}}}}
my @tlds = qw(.aero .asia .biz .cat .com .coop .edu .gov .info .int .jobs .mil .mobi .museum .name .net .org .pro .tel .travel .ac .ad .ae .af .ag .ai .al .am .an .ao .aq .ar .as .at .au .aw .ax .az .ba .bb .bd .be .bf .bg .bh .bi .bj .bm .bn .bo .br .bs .bt .bv .bw .by .bz .ca .cc .cd .cf .cg .ch .ci .ck .cl .cm .cn .co .cr .cu .cv .cx .cy .cz .de .dj .dk .dm .do .dz .ec .ee .eg .er .es .et .eu .fi .fj .fk .fm .fo .fr .ga .gb .gd .ge .gf .gg .gh .gi .gl .gm .gn .gp .gq .gr .gs .gt .gu .gw .gy .hk .hm .hm .hn .hr .ht .hu .id .ie .il .im .in .io .iq .ir .is .it .je .jm .jo .jp .ke .kg .kh .ki .km .kn .kp .kr .kw .ky .kz .la .lb .lc .li .lk .lr .ls .lt .lu .lv .ly .ma .mc .md .me .mg .mh .mk .ml .mm .mn .mo .mp .mq .mr .ms .mt .mu .mv .mw .mx .my .mz .na .nc .ne .nf .ng .ni .nl .no .np .nr .nu .nz .om .pa .pe .pf .pg .ph .pk .pl .pm .pn .pr .ps .pt .pw .py .qa .re .ro .rs .ru .rw .sa .sb .sc .sd .se .sg .sh .si .sj .sk .sl .sm .sn .so .sr .st .su .sv .sy .sz .tc .td .tf .tg .th .tj .tk .tl .tm .tn .to .tp .tr .tt .tv .tw .tz .ua .ug .uk .us .uy .uz .va .vc .ve .vg .vi .vn .vu .wf .ws .ye .yt .yu .za .zm .zw .xn--0zwm56d .xn--11b5bs3a9aj6g .xn--80akhbyknj4f .xn--9t4b11yi5a .xn--deba0ad .xn--g6w251d .xn--hgbk6aj7f53bba .xn--hlcj6aya9esc7a .xn--jxalpdlp .xn--kgbechtv .xn--zckzah .arpa ) # there are way too many of these.
... you can do the rest.
21
Name:
Anonymous
2008-12-03 6:10
for $a (1..254) {
for $b (1..254) {
for $c (1..254) {
for $d (1..254) {
Terrible!
22
Name:
Anonymous
2008-12-03 6:13
>>21
how would you do it?
23
Name:
Anonymous
2008-12-03 6:20
>>22
Using the correct address ranges. And probably not using the reserved variables
$a and
$b.
24
Name:
Anonymous
2008-12-03 6:31
>>23
And probably not indenting it correctly, if your quoting in
>>21 is any indication.
25
Name:
Anonymous
2008-12-03 9:07
Don't forget port knocking!