Skip to content

Instantly share code, notes, and snippets.



Created Aug 31, 2016
What would you like to do?
[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;
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;
public String toString() {
return username;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.