Skip to content

Instantly share code, notes, and snippets.

@ITAYC0HEN
Created August 31, 2016 20:32
Show Gist options
  • Save ITAYC0HEN/ad92229f6ae7f5fdf3c47ec752959b7e to your computer and use it in GitHub Desktop.
Save ITAYC0HEN/ad92229f6ae7f5fdf3c47ec752959b7e to your computer and use it in GitHub Desktop.
[CTF(x) 2016 : WEB] Harambehub – 100 pts
import java.util.ArrayList;
import java.util.List;
/**
* Created by aashish on 8/26/16.
*/
public class User {
static List<User> users = new ArrayList<>();
private String username;
private String master;
private String realName;
public User(String username, String password, String realName) {
this.username = username;
this.master = password;
this.realName = realName;
users.add(this);
}
public String getRealName() {
return this.realName;
}
public boolean verify(String username, String password) {
return this.username.equals(username) && this.master.matches(password);
}
public String getUsername() {
return username;
}
@Override
public String toString() {
return username;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment