Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HttpPost

Discussion on HttpPost within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
HttpPost

Ich versuch mich auf einer Webseite () durch ein Login anzumelden. Aber der POST Cookie wird irgendwie verschlüsselt, weil ich nicht sehen kann wo mein Passwort abgeschickt wird. Deswegen weiß ich nicht wie ich den in AutoIt nachbauen soll. Jemand eine Idee?
Moneypulation is offline  
Old 10/16/2014, 01:35   #2


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Benutz für sowas kein Jimdo, sondern cwsurf o.ä. und code dir die Seite selbst. Das fordert zwar minimale PHP Coding Kenntisse, aber das sollte man, wenn man AutoIt auch nur minimal beherrscht mit Google auf die Reihe bekommen.

Index:
index.php (unterer Code)
content.php (was bei richtigem passwort gezeigt werden soll)

PHP Code:
<!DOCTYPE HTML>
<html>
    <head>
        <title>Passwort Example</title>
    </head>
    <?php
        $my_password 
'$1$hC/.WP2.$0qC.UjgvpW63gNF8cBepf0'/*123456*/
        
$input_password = isset($_POST['input_password']) ? $_POST['input_password'] : "";
        if(!empty(
$input_password && crypt($input_password) == $my_password))  {
            include(
"content.php");
            exit;
        }
    
?>
    <body>
        <form method="POST">
            <input type="password" name="input_password">
            <input type="submit">
        </form>
    </body>
</html>
Requi is offline  
Thanks
1 User
Old 10/16/2014, 07:47   #3
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189

"roflrolf" war das pw, also wird es als klartext mitgesendet
butter123 is offline  
Thanks
1 User
Old 10/16/2014, 16:01   #4
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
in einem cookie wird generell kein passwort gesendet
YatoDev is offline  
Thanks
1 User
Old 10/16/2014, 17:05   #5

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Quote:
Originally Posted by Requi View Post
Benutz für sowas kein Jimdo, sondern cwsurf o.ä. und code dir die Seite selbst. Das fordert zwar minimale PHP Coding Kenntisse, aber das sollte man, wenn man AutoIt auch nur minimal beherrscht mit Google auf die Reihe bekommen.

Index:
index.php (unterer Code)
content.php (was bei richtigem passwort gezeigt werden soll)

PHP Code:
<!DOCTYPE HTML>
<html>
    <head>
        <title>Passwort Example</title>
    </head>
    <?php
        $my_password 
'$1$hC/.WP2.$0qC.UjgvpW63gNF8cBepf0'/*123456*/
        
$input_password = isset($_POST['input_password']) ? $_POST['input_password'] : "";
        if(!empty(
$input_password && crypt($input_password) == $my_password))  {
            include(
"content.php");
            exit;
        }
    
?>
    <body>
        <form method="POST">
            <input type="password" name="input_password">
            <input type="submit">
        </form>
    </body>
</html>
Danke hab das jetzt so gemacht, nur finde ich mein Passwort wieder im POST nicht. Wie kann ich das denn in AutoIt nachkonstruieren? :/



Passwort: dashieristmeinpasswort
Moneypulation is offline  
Old 10/16/2014, 17:40   #6
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
du weißt aber schon, wie man livehttpheaders o.ä. bedient?

butter123 is offline  
Thanks
1 User
Old 10/16/2014, 17:42   #7
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Code:
#include <WinHttp.au3>

$hSession = _WinHttpOpen()
$hConnect = _WinHttpConnect($hSession, "moneypvp.cwsurf.de")
_WinHttpSimpleRequest($hConnect)
MsgBox(0,0, _WinHttpSimpleRequest($hConnect, "POST", "", Default, "input_password=dashieristmeinpasswort"))
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
alpines is offline  
Thanks
1 User
Old 10/16/2014, 18:11   #8

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Quote:
Originally Posted by butter123 View Post
du weißt aber schon, wie man livehttpheaders o.ä. bedient?

Anscheinend nicht:



Quote:
Originally Posted by alpines View Post
Code:
#include <WinHttp.au3>

$hSession = _WinHttpOpen()
$hConnect = _WinHttpConnect($hSession, "moneypvp.cwsurf.de")
_WinHttpSimpleRequest($hConnect)
MsgBox(0,0, _WinHttpSimpleRequest($hConnect, "POST", "", Default, "input_password=dashieristmeinpasswort"))
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
Danke dir
Moneypulation is offline  
Old 10/16/2014, 19:28   #9
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Du brauchst für Chrome nicht Live HTTP Headers, Chrome (F12) Netzwerk funktioniert viel besser.
alpines is offline  
Thanks
1 User
Old 10/16/2014, 19:50   #10

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Quote:
Originally Posted by alpines View Post
Du brauchst für Chrome nicht Live HTTP Headers, Chrome (F12) Netzwerk funktioniert viel besser.
Oh, das kannte ich garnicht. Und in der Tat, dort wird input_password angezeigt. Danke
Moneypulation is offline  
Old 10/16/2014, 20:02   #11
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Streng genommen liegt Live HTTP Headers eigentlich gar nicht mal so falsch dir das Passwort nicht anzuzeigen, denn du schaust dir nur die Headers an und nicht den Content den du mitsendest.
alpines is offline  
Thanks
1 User
Old 10/16/2014, 22:41   #12
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
Quote:
Originally Posted by alpines View Post
Streng genommen liegt Live HTTP Headers eigentlich gar nicht mal so falsch dir das Passwort nicht anzuzeigen, denn du schaust dir nur die Headers an und nicht den Content den du mitsendest.
bei mir gibts den post content mit an o.0 ^^
butter123 is offline  
Old 10/16/2014, 23:15   #13


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Quote:
Originally Posted by moneypulation View Post
Danke hab das jetzt so gemacht, nur finde ich mein Passwort wieder im POST nicht. Wie kann ich das denn in AutoIt nachkonstruieren? :/



Passwort: dashieristmeinpasswort
LiveHttpHeaders nutzt man eigentlich nur, um es einfacher zu machen. Du kannst es theoretisch auch manuell machen.

Alles was in der <form .... > ist:
method="POST"
somit weißt du wie du senden musst.
name="input_password"
Davon die Value wird als POST gesendet

Und die URL müsstest du ja wissen, sowie die Datei auf die du derzeit zugreifst.
Requi is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Java] Httppost Parameter zu Datei mitgeben
03/02/2014 - Java - 2 Replies
Hey, ich habe den Code hier: import java.io.File; import java.nio.charset.Charset; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpVersion; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost;



All times are GMT +1. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.