- Code:
-
import java.util.*;
import java.net.*;
public class FriendsterPasswordHack {
String name;
String password;
HttpConnection conn;
ArrayList passwordHintWords;
public FriendsterPasswordHack(String userName) {
name = userName;
passwordHintWords = new ArrayList();
}
public void doLoginAttempt() {
conn = new HttpConnection();
conn.setArg(”name”, name);
conn.setArt(”password”, password);
conn.open(”http://www.friendster.com/login.php”);
}
public void tryNextPassword() {
passwordHints.removeLast();
}
public void collectPasswordHints() {
String str = conn.getPage(”friends.php”);
StringTokenizer st = new StringTokenizer(” “);
while (st.hasMoreTokens()) {
passwordHints.add(st.nextToken());
}
}
public void go() {
new Thread(this).start();
}
public static void main(String[] args) {
FriendsterPasswordHack fph = new FriensterPasswordHack(args[0]);
fph.go();
fph.fuck();
fph.yourSelf();
}
}
javac FriendsterPasswordHack.java
Implementation details: It uses a heuristic. First it looks at your network of friends to collect keywords from their profiles. Then it generates combinations of these keywords and makes login attempts, recording the name/password combinations that work. It’s sorta like war-dialing from back in the day but with a few twists as I’m sure you’ll dig into once you download the source code. I was really suprised at how well this works, to tell you the truth.
To run it, just compile with
javac FriendsterPasswordHack.java
and run it with
java FriendsterPasswordHack [name] [password]
where [name] and [password] are your friendster name and password. This is required so that it can log in as you and collect the heuristic keywords from profiles in your network.