JavaScript - Autologin
I have simply tried
"http://user':'password@gmail.com" to auto login to a website but it does not work do you have any sugesstions/scripts for autologin to any website. Similar TutorialsHello, I was wondering if you can help me write a script to search for available/open slots on a website and autologin on those every night at 12:00AM midnight. Is it possible? There are 4 equipments for use and any one can sign on to it if there is open slot within 48 hrs which starts at 12:00AM midnight. for example:- on monday night at 12:00AM wednesday becomes open and anyone can sign up so this script should search for all 4 equipments and sign up on all available slots for Wednesday Thanks in advance Currently I have a .vbs script that I am using to auto login to a site. I know its not javascript but the site itself is and thats what causing my issue I think? The site is a reservation site for classes at the gym. Basically I want the script to login to the site and sign up for a specific class every week. Its the same class same time same day. Below is the code I have so far. I can't figure out what the "sign up" button sends for me to add it into the script.
Code: set a = createobject("wscript.shell") a.run "https://clients.mindbodyonline.com/ASP/home.asp?studioid=6268/" wscript.sleep (5000) a.sendkeys ("khigbie") a.sendkeys chr(9) wscript.sleep (2000) a.sendkeys ("ilovelamp11") a.sendkeys "{Enter}" call msgbox("Finished") wscript.quit I'm not sure if it helps but I pulled the source from the page when logged in... Code: <!-- CLISRV0107 --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title>The Edge Fitness Clubs Online</title> <meta http-equiv="Content-Type" content="text/html" /> <link rel="icon" href="/favicon.ico" /> <link rel="shortcut icon" href="/favicon.ico" /> <script type="text/javascript" src="/work/scripts/jquery-1.4.2.js"></script><script type="text/javascript" src="/work/scripts/error.js"></script><script type="text/javascript" src="/work/scripts/mb.js"></script><script type="text/javascript" src="/work/scripts/home.js"></script> <script type="text/javascript"> var js_studioid = "6268"; var dis_array = {0:'Room', 1:'Class Type', 2:'Session Type', 3:'Workshops', 4:'Appointments', 5:'Classes', 6:'Teacher', 7:'Program', 8:'Location', 9:'Booked', 10:'Completed', 11:'Confirmed', 12:'Client', 13:'Assistant', 14:'Rentals', 15:'Assistant2', 16:'Arrived', 17:'Check Out', 18:'Instructor', 19:'Program', 20:'Company', 21:'Reserved', 22:'Total', 23:'Client', 24:'Help', 25:'Online Store', 26:'Current Series', 27:'Payment', 28:'Event', 29:'Balance', 30:'Credit', 31:'Debit', 32:'Remaining', 33:'Unbooked', 34:'Purchased', 35:'Amount', 36:'Paid', 37:'Payment Ref #', 38:'Back', 39:'Email Address', 40:'Name', 41:'Username', 42:'Password', 43:'Home Studio', 44:'Billing Name', 45:'Billing Address', 46:'Address', 47:'City', 48:'State', 49:'Postal Code', 50:'CC Type', 51:'CC Number', 52:'CC Expiration', 53:'Edit', 54:'Web', 55:'Cancel', 56:'At', 57:'Date', 58:'Time', 59:'Payment Method', 60:'Status', 61:'Series', 62:'Account', 63:'Current', 64:'Expiration Date', 65:'Description', 66:'Sale Date', 67:'Color', 68:'Location', 69:'Price', 70:'Quantity', 71:'Tax', 72:'Amount Paid', 73:'Details', 74:'Info', 75:'Size', 76:'Start Time', 77:'Start Date', 78:'End Time', 79:'End Date', 80:'First Name', 81:'Last Name', 82:'Home Phone', 83:'Mobile Phone', 84:'Work Phone', 85:'Business Phone', 86:'Business Address', 87:'Business Email', 88:'Account Information', 89:'Billing Information', 90:'Notes', 91:'Country', 92:'Click Here', 93:'Phone #', 94:'Login', 95:'Discount', 96:'Class Level', 97:'Sales Tax', 98:'Tax 2', 99:'Tax 3', 100:'Tax 4', 101:'Tax 5', 102:'', 103:'', 104:'', 105:'', 106:'', 107:'', 108:'Rep', 109:'ACH', 110:'Rep 2', 111:'Rep 3', 112:'Contract Deposit', 113:'Teachers', 114:'Instructors', 115:'Sale ID', 116:'Sold By', 117:'Exp', 118:'Subtotal', 119:'Rep 4', 120:'Rep 5', 121:'Rep 6', 122:'Insurance Company', 123:'Insurance Policy #', 124:'Birthday', 125:'Question', 126:'Test', 127:'Referral Type', 128:'Remember Me', 129:'Previous Day', 130:'Today', 131:'Next Day', 132:'Last Week', 133:'Next Week', 134:'ID', 135:'Session Type Level', 136:'Search', 137:'Appointment', 138:'Male', 139:'Female', 140:'Date', 141:'Time', 142:'Class/Session Level', 143:'Yes', 144:'No', 145:'CVV2', 146:'Cardholder Name', 147:'Check', 148:'Uncheck', 149:'All', 150:'None', 151:'Substitute', 152:'Sun', 153:'Mon', 154:'Tue', 155:'Wed', 156:'Thu', 157:'Fri', 158:'Sat', 159:'View', 160:'Update', 161:'From', 162:'To', 163:'Partner', 164:'Purchases', 165:'Fee', 166:'Contact', 167:'Submit', 168:'Gender Preference', 169:'Next', 170:'OR', 171:'Open', 172:'Late Cancel', 173:'Unconfirmed', 174:'Week', 175:'January', 176:'February', 177:'March', 178:'April', 179:'May', 180:'June', 181:'July', 182:'August', 183:'September', 184:'October', 185:'November', 186:'December', 187:'Auto Pays', 188:'Contract', 189:'Print', 190:'Enroll', 191:'Add', 192:'in', 193:'This Month', 194:'This Week', 195:'Memberships', 196:'&', 197:'Contracts', 198:'Packages', 199:'Days', 200:'Book', 201:'Rep1', 202:'Class', 203:'Workshop', 204:'Middle Name', 205:'Nickname', 206:'Back Bar Charge', 207:'County', 208:'Commission', 209:'Commission2', 210:'Locker #', 211:'Emergency Contact Information', 212:'Name', 213:'Relationship', 214:'Phone', 215:'Email', 216:'Select', 217:'Item', 218:'Type', 219:'Conversions', 220:'Members', 221:'Non-Members', 222:'Company', 223:'Prospects', 224:'Costume', 225:'Costumes', 226:'Generate', 227:'Gender', 228:'Relationship', 229:'Waist', 230:'Hip', 231:'Girth', 232:'Inseam', 233:'Head', 234:'Shoe', 235:'Tights', 236:'Height', 237:'Bust', 238:'Prefix', 239:'Active', 240:'InActive', 241:'Legal Name', 242:'STAFF ALERT', 243:'Alert', 244:'Select State/Prov', 245:'Date Range', 246:'n/a', 247:'Owner', 248:'Age', 249:'Years', 250:'Months', 251:'Formula', 252:'Referral Discount', 253:'Termination Code', 254:'Termination Comments', 255:'Day', 256:'Semester', 257:'Year', 258:'Month', 259:'Quarter'}; var mbo_scd = '4/13/2009'; </script> <link rel="stylesheet" type="text/css" href="/work/styles/jquery.tooltip.css" /><link rel="stylesheet" type="text/css" href="/work/styles/base/jquery.ui.all.css" /><script type="text/javascript" src="/work/scripts/jquery-1.4.2.js"></script><script type="text/javascript" src="/work/scripts/plugins/jquery.cookie-1.0.js"></script><script type="text/javascript" src="/work/scripts/plugins/jquery.mb.js"></script><script type="text/javascript" src="/work/scripts/jquery-ui-1.8.4.custom.js"></script><script type="text/javascript" src="/work/scripts/plugins/jquery.tooltip.js"></script><script type="text/javascript" src="/work/scripts/plugins/jquery.ba-resize.js"></script><script type="text/javascript" src="/work/scripts/plugins/jquery.lightboxLib.js"></script> <script type="text/javascript"> $(function() { // init tooltips $("img[title],span[title],select[title],input[title],legend[title]").tooltip({ track: true, showURL: false, fade: 250 }); $('fieldset.collapsible').setCollapseEvents(); }); </script> <!-- MBO's analytics code DevItem R58_3856--> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-31442-3']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script type="text/javascript"> function resetSession() { alert("Your session has expired, redirecting home."); parent.location = "/ASP/logout.asp?studioid=6268" } </script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-31442-3"); pageTracker._trackPageview(); } catch (err) { } </script> </head> <script type="text/javascript"> var mbo_scd = '4/13/2009'; </script> <frameset id="mainFrameset" rows="98,*" frameborder="0" framespacing="0" NORESIZE> <frame name="topFrame" src="top_class.asp?tg=0&vt=&lvl=&view=&trn=&date=&loc=&page=&pMode=&prodid=&stype=-7&classid=&catid=&justloggedin=" frameborder="0" noresize scrolling="NO" > <frame name="mainFrame" src="main_class.asp?tg=0&vt=&lvl=&view=&trn=&date=&loc=&page=&pMode=&prodid=&stype=-7&classid=&catid=&justloggedin=" frameborder="0" scrolling="YES"> </frameset> <noframes> <body style="background-color:#FFFFFF;" text="#000000"> </body> </noframes> </html> Thanks for any help!! |