01110100110101010101011101100010
Archive for September, 2008
Using YUM with a proxy Fedora
Sep 27th
Finally i got a chance to use the awesome LAN at the college campus and it was a very good time to update the packages, but there was a problem it had a proxy, so i typed man yum and was pointed at man yum.conf and there it was a simple solution, all the you need to do is just edit the yum.conf file as root
type
su
enter your root password now type
nano /etc/yum.conf
here add a line
proxy = http://address:port
replace the above code with the address you need like 172.16.19.10 and port 80 in my case and all will work just fine
Enjoy!!!
Ankur Shrivastava
Ion Auto Login for Windows XP/ Vista
Sep 19th
Ion Auto Login ( IAL ) script written in python has been updated to a exe, that means it will run directly from your windows just by clicking ialv1.exe. To change the username and password delete the ial.info file, if you face any problem please comment on this post
download here size 2.3MB
Linux and Mac users can download this and execute it by typing python ialv1.py
Enjoy!!!!
PS – 1 known problem if no connection it there it goes into an infinite loop to come out press Ctrl + Pause or Ctrl + Break
UPDATE — the link now points to updates made by GenobZ ( Prakhar ) which makes it more efficient……… the old link is here
ION Auto Login Script in Python Version 1
Sep 17th
After yesterdays efforts i have now made a complete working Python IAL (ION Auto Login) script which can store your password and checks for login in every 1 Min and continues till you stop it, here is the Code
iimport urllib, urllib2, time, cPickle
class ialv1:
interval = 0
username = ""
password = ""
def __init__(self):
try:
f = file('ial.info')
list = cPickle.load(f)
self.username, self.password = list
f.close()
except:
print "Welcome to I-ON Auto login Script\nMade by Ankur Shrivastava\n"
self.username = raw_input("Enter Your Username: ")
self.password = raw_input("Enter Your Password: ")
list = [self.username,self.password]
f = file('ial.info','w')
cPickle.dump(list,f)
f.close()
def check(self):
data = {"loginID":self.username,"loginpassword":self.password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
bol =1
while (bol ==1):
try:
open = urllib2.urlopen(request)
print "Logged In"
bol = 2
except:
print "Server Gone Crazy\ntrying again...."
if __name__ == "__main__":
i = ialv1()
while (1):
i.check()
time.sleep(60)
You can Download it here
I Love Python!!!!!!!
Ion Auto Login script in Python
Sep 16th
i was just thinking about making the very famous IAL script of DJ in python and here is it and its damn simple
import urllib, urllib2, time
username = "Your username"
password = "Your Password"
interval = 10
data = {"loginID":username,"loginpassword":password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
print "Logging In\nMade by Ankur - http://ankurs.com"
while (1):
open = urllib2.urlopen(request)
responce = open.read()
for i in range (1,interval):
print (interval-i),"min Till Next Login"
time.sleep(60)
print "Logging In\nMade by Ankur - http://ankurs.com"
or downlaod
run it by typing python ial.py
it uses urllib, urllib2 and time which are the default module, you have to change the username and password to your username and password, changing the interval changes the time interval in which auto login takes place. enjoy!!
PS – current it does no check if your connection is active or not, will add that soon



