Skip to content

Sends company request by bypassing the **sophisticated** in-house INSA captcha system

License

Notifications You must be signed in to change notification settings

utopiaio/Fight-Milk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fight Milk

Fight Milk

A simple node phantom app that sends a form to INSA where the idea of a captcha is grossly misunderstood --- sad & funny at the same time

Mind you this organization is responsible for cyber defense of the country

The image you see below is the background of the captcha. You can literally copy-paste the captcha text 😂😔

captcha

Usage

# cd to project folder
$ yarn # or `$ npm install`
$ node app.js # starts server on `localhost:8000`
# 💡 Using httpie (http://httpie.org) as HTTP client
$ http UNLOCK localhost:8000 # initiates a Phantom instance
$ http LOCK localhost:8000 # stops all instances and shows stats

Application Logic

INSA site is powered by Liferay so it's assumed the site is protected with cookies, csrf, <insert another venerability here>, so using cheerio and superagent won't cut the 🧀 --- a project with a super-cool name enters, nightmarejs; so essentially my task is writing simple timer "function" (insa.js) and one CSS selector.

The whole thing took little over an hour (mostly spent on reading Nightmarejs's documentation)

⚠️⚡️ Note ⚡️⚠️

After sending a couple of hundred requests, the site takes ~10 seconds to process a request ⏲

About

Sends company request by bypassing the **sophisticated** in-house INSA captcha system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published