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.

1st Mar 2018, 4:11 AM
ElonMusk'sWife
ElonMusk'sWife - avatar
23 ответов
+ 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
3rd Mar 2018, 10:10 AM
lion
lion - avatar
+ 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?
1st Mar 2018, 9:15 AM
Ipang
+ 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..
1st Mar 2018, 8:17 AM
Ipang
+ 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
1st Mar 2018, 4:20 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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
1st Mar 2018, 5:55 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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?
1st Mar 2018, 6:13 AM
Ipang
+ 3
are you the owner of the website? "Then it's possible" : "Then it can only be done with higher level hacking"
1st Mar 2018, 4:15 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 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.
1st Mar 2018, 4:29 AM
Ipang
+ 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 : )
1st Mar 2018, 4:41 AM
Ipang
+ 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.
2nd Mar 2018, 4:09 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 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
1st Mar 2018, 8:01 AM
ElonMusk'sWife
ElonMusk'sWife - avatar
+ 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?
1st Mar 2018, 8:02 AM
Timon Paßlick
+ 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.
1st Mar 2018, 9:18 AM
Timon Paßlick
+ 2
@Nomeh Whoever downvoted your answer didn't get what you did there ^^
1st Mar 2018, 9:41 AM
Alex
Alex - avatar
+ 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.
1st Mar 2018, 5:47 AM
ElonMusk'sWife
ElonMusk'sWife - avatar
+ 1
So are there any program or bot build for this purpose?
1st Mar 2018, 6:01 AM
ElonMusk'sWife
ElonMusk'sWife - avatar
+ 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?
1st Mar 2018, 7:55 AM
Timon Paßlick
+ 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.
1st Mar 2018, 9:05 AM
Timon Paßlick
+ 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.
2nd Mar 2018, 2:47 AM
lion
lion - avatar
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
1st Mar 2018, 7:02 AM
ElonMusk'sWife
ElonMusk'sWife - avatar