2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-22 18:37:10 +00:00

fix never detecting no password prompt

This commit is contained in:
Eli B 2015-12-08 21:02:43 -06:00
parent cf679b525f
commit 01f35717c7

View File

@ -20,7 +20,7 @@ public class fucking_coffee{
PrintWriter out = new PrintWriter(telnet.getOutputStream(), true);
BufferedReader in = new BufferedReader(new InputStreamReader(telnet.getInputStream()));
Thread.sleep(DELAY_BEFORE_BREW*1000);
if(in.readLine() != PASSWORD_PROMPT){
if(!in.readLine().equals(PASSWORD_PROMPT)){
return ;
}
out.println(PASSWORD);