How would I run this script?
I can ssh (if the local is up..)

but would prefer to cron it..
IF I can put the script in a cron, could I have the cron check say every hour and run the script if the network is down

On Dec 2, 2005, at 5:29 PM, jb wrote:

I once knew a certain person who hated Kronos, and was always at work on time. (Not me, I'm on contract.) So, since Krono doesn't check referrers on form submissions, he wrote a JavaScript page that used iframes with onloads to create a new session, log him in, and then punch in/out for him. He put in cron to run "mozilla /home/ johndoe/punch.html" when he wanted to be in/out.

Every time card of his was 20 hours/week right on the dot.

That person's morality aside. A similar solution could work here. In fact, I just tested it here in the McKay, and the I was able to authenticate a new MAC by hardcoding my net ID and password into this script page:

<html><body>
<form method="post" action="https://connect6.app.byu.edu/auth/ perfigo_validate.jsp"> <input type="hidden" name="reqFrom" value="perfigo_simple_login.jsp" />
     <input type="hidden" name="uri" value="http://www.byu.edu/"; />
     <input type="hidden" name="cm" value="dosntmatter" />
     <input type="hidden" name="userip" value="" />

     <input type="hidden" name="os" value="WINDOWS_XP" />
     <input type="hidden" name="index" value="4" />

<input type="text" name="username" size="15" value="[NET ID GOES HERE]"/> <input type="password" name="password" size="16" value="[PASSWORD GOES HERE]"/>
         <input type="hidden" name="provider" value="byu-ldap" />
         <input type="submit" name="login_submit">
   </form>
<script language="javascript">
document.forms[0].submit();
</script>
</body>
</html>

-jb

Michael Moore wrote:

--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to