Pergunta

I want to have post based login and then re-direct to the same site. this is in order to automate the loading of a web page on a raspberry pi driven display.

I started out with this:

<meta http-equiv="refresh" content="0; url=URL TO SITE" />

so the re-direction works.

Now I want the http post:

<form action="URL TO SITE" method="POST">
  <input username="USERNAME" password="PASSWORD">
</form>

but it doesn't work. tested on chrome, chromium, midori. All have the same issue.

Ideas ?

this is not for phishing, I want to automate a job inside our intranet where a raspberry pi boots and starts chromium, and logs into icinga to display metrics from our production environment. Problem is, raspbian crashes once a week and I have to ssh to the machine to perform this manually often.

Foi útil?

Solução

change

<input username="USERNAME" password="PASSWORD">

to

<input type='text' name='username' value="USERNAME" />
<input type="password" value="PASSWORD" name="password" />

and add a submit button:

<input type="Submit" value="Login" />

Then it'll work.

But, however if you don't have access to That sites login script, Then You're doing illegal thing called CSRF attack (Cross Site Reference attack), And also a thing called Phishing.

So please avoid it!!

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top