0
Auto program
Hello, programmers! How to build a program that will go on appropriate site,will write login and password, wait for 10 seconds and then stop automatically? IMPORTANT: it has to run every day. The case in that: in our school everyone has to go on one site daily, and that's exhausting. So do you have any solutions for this problem? I don't want to hack anything.
23 Answers
+ 3
I made the program, as promised, but I've been reluctant to post it because it turned more complicated and ugly than I anticipated. Here it is though:
https://code.sololearn.com/cDTCMcc06iCh
+ 6
@Madina, I agree with @tmp_name, I guess you may need to reconsider the worth of time developing the tool and the time spent for manual web login, even if it's doable I still doubt the urgency of allowing a code to close the browser, what if you were doing something e.g. composing new mail and suddenly the code closes the browser, you'll lose all your work, now that's more a problem opposed to website manual login right?
+ 5
@Madina, let me get this straight first;
1. You open your browser and head to your school's website.
2. In your school website there's a link to another site, we'll call it "other".
3. Everyday you want this code to assist by doing auto-login to the "other" with one's credential (yours).
4. After the code sends the credential to the "other" and got a successful login response the code should wait 10 seconds (or minutes?).
5. After the timeout elapsed, the code should close the web browser.
Is this what you have in mind? to me it seems that such feature should be created by your school's webmaster, as they are the ones (other than the pupils themselves) who knows the login information.
One question though, why close the browser? is there any reason that it has to?
@Timon, I know I don't..
+ 4
if it's not your site,theres a very slim chance you can hack it.websites are very secure nowadays,if it's yours then it's up to you to learn web
+ 4
oh I get it,so you need a bot that would help login into a website automatically everyday?bots are very hard to build.never built one myself
+ 4
@Madina, I'm still not understanding the goal here, what sort of assistance one would need to login to a website, they only need their username and password (or e-mail), still expecting more from your side, I don't suppose page redirection would fit your scenario then?
+ 3
are you the owner of the website? "Then it's possible" : "Then it can only be done with higher level hacking"
+ 3
It is unethical to try, or actually do read and save others' credentials for *whatever* reason, even tech giants are framed for user rights violations if they were proven to.
You might want to reconsider your idea, unless I misunderstood your point here, I'm thinking you're probably trying to steal other people's login information, which is obviously bad. You may however, to clarify your actual intention if it was not what I think it is.
+ 3
@Madina, can you tell us more of this plan of yours? it's good to know you didn't mean any such thing, go on then, some details would help to understand the real goal : )
+ 3
If the website isn't very secure you can probably just find where the POST request for the login information gets sent to and make a simple script that sends a post request with the username and password to the site.
+ 2
@Timon, I learned C++ language and only in this app. Now I see that my skills are not good enough for making such a complicated program
+ 2
Ok, that's a pitty. Maybe you can try again when you'll become better.
Does anybody know existing tools which could solve Madinas problems?
+ 2
The browser is never opened or used with the right bot.
If you connect by sending bytes around the internet rather than communicating with your browser.
+ 2
@Nomeh Whoever downvoted your answer didn't get what you did there ^^
+ 1
Jan Markus, you are probably right. You have just got to the point that I meant to. The only reason why we (pupils and parents, teachers) are forced to do this work is for rating of our school and making it the TOP SCHOOL in our city.(every day teachers are punished for pupils who didn't come to site) I don't want to participate in this anymore.
+ 1
So are there any program or bot build for this purpose?
+ 1
Probably, your bot won't click an icon. It will communicate with the website without showing it on the screen.
If this bot should run on android, I would use Kotlin or, in case you don't know this new language, Java.
Or which languages do you know?
+ 1
Can you send us a link so that we can say how hard it is?
Btw letting the program run all the time is no problem. We can make it consume practically no battery.
+ 1
a real bot, like these people say, would be the cleanest, but Idk how to do that. An ugly workaround would be a macro recording program. And an (arguably) uglier solution would be exactly the C++ you know, using Windows functions like WinExec to start the browser and SendInput to simulate mouse and keyboard events. On something other than windows, I don't know, I only did things like these on windows. If this is good enough for you, later today, or tomorrow, I could make a sample program to log on to yahoo, for example, and you could modify it for your need.
0
@Ipang suppose I have a link to this site(in browser) on my home screen, at a certain time this program clicks on this icon(link), goes to the site, clicks on login space and chooses my login and password saved in this site, then waits about 10 seconds and closes the browser