VMPR / vmpr.hta

<!DOCTYPE html>
<title>Virgin Mobile PIN Changer</title>
<meta http-equiv="x-ua-compatible" content="ie=9">
	APPLICATIONNAME="Virgin Mobile PIN Changer"
<style type="text/css">
div label { display: block }
div { display: inline-block; padding: 5px }
<script language="VBScript">
	sub Window_onLoad
		window.resizeTo 400,240
	end sub
	sub RunProgram
		dim phone, pin, freq, fuzz, output, verbose, command, objShell
		phone = document.getElementById("phone").value
		pin = document.getElementById("pin").value
		if (Len(phone) = 0) then
			Msgbox "Please enter your phone number (e.g. 3333333333)"
			exit sub
		end if
		if (Len(pin) = 0) then
			Msgbox "Please enter your PIN (e.g. 222222)"
			exit sub
		end if
		freq = document.getElementById("freq").value
		fuzz = document.getElementById("fuzz").value
		output = document.getElementById("output").value
		verbose = document.getElementById("verbose").checked

		command = "phantomjs.exe vmpr.js " & phone & " " & pin
		if (Len(freq)) then command = command & " --frequency=" & freq
		if (Len(fuzz)) then command = command & " --fuzz=" & fuzz
		if (Len(output)) then command = command & " --output=" & output
		if (verbose) then command = command & " --verbose"
		'Msgbox command
		set objShell = CreateObject("Wscript.Shell")
		objShell.run command, 1, false
	end sub
	<label for="phone">Phone number</label>
	<input type="text" id="phone" size="10"/>
	<label for="pin">PIN</label>
	<input type="text" id="pin" size="6"/>

	<label for="freq">Frequency in seconds</label>
	<input type="text" id="freq" value="180" size="6"/>
	<label>Fuzz factor</label>
	<input type="text" id="fuzz" value="10" size="3"/>
	<label for="output">Where to write new PINs</label>
	<input type="file" id="output"/>
	Verbose output
	<input type="checkbox" id="verbose" value="1"/>
<input type="button" value="Run" name="run_button" onClick="RunProgram()">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.