[Delphi] GunZ Control Panel [WIP]

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 42
  1. #16
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Aristrum View Post
    Nice idea :). I've always preferred IRC for admin tasks because I'm usually on it >.>

    You should make sure that "sessions" cant be spoofed. They should probably have other security features such as a timeout and etc.

    On the subject of features, It's pretty mcuh going to end up like a webpanel... so take ideas from there.

    Also, you should indent your code :P. Makes it much easier to read.
    Its similar to the Webpanel, but with more features which the webpanel wont have :).

  2. #17

    Re: [Delphi] GunZ Control Panel [WIP]

    hahaha bounty ma Friend haha u decided to come back after all :D!
    thats good :D hope this project goes well ;D
    and the project looks cool so good luck m8 :)

  3. #18
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Update :
    Thanks to demantor i have finished the CreateAccount Function
    Which took about 10 minutes :P
    Code:
    Procedure TServerSystem.CreateAccount(U: string; P: string);
    begin
    CurrentTIme := DateTimeToStr(Time);  
      SQLQuery.SQL.Text := 'INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Name, Email, RegNum, Age, Sex, ServerID) VALUES ( ' + '''' + U + '''' + ',0,0,' + '''' + CurrentTime + '''' + ',' + '''' + U + '''' +',NULL,NULL,20,NULL,0 )';
      SQLQuery.ExecSQL()

  4. #19
    Faraday Das Neves Jizeth is offline
    MemberRank
    Sep 2008 Join Date
    VenezuelaLocation
    392Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    thnx bounty.. xdd love u work... i press the button "ty" xdd

  5. #20
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    He(we xD) is currently working on Character editing :P

  6. #21
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Character Editing almost Complete, finishing it off 2moro

  7. #22
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Might want to check for SQL injection ;).

  8. #23
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    happy Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Aristrum View Post
    Might want to check for SQL injection ;).
    Isn't needed since the Server is Applying the Querys.

    An SQL Injection can be only made if the Client is requesting the Commands by the Querys(editing a packet and lol, trying to add something) But, The Client requests Commands by IDs.

  9. #24
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Demantor View Post
    Isn't needed since the Server is Applying the Querys.

    An SQL Injection can be only made if the Client is requesting the Commands by the Querys(editing a packet and lol, trying to add something) But, The Client requests Commands by IDs.
    I'm not exactly sure about what you just said, but...

    The queries you're executing still take user input.

    Code:
    Procedure TServerSystem.CreateAccount(U: string; P: string);
    begin
    CurrentTIme := DateTimeToStr(Time);  
      SQLQuery.SQL.Text := 'INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Name, Email, RegNum, Age, Sex, ServerID) VALUES ( ' + '''' + U + '''' + ',0,0,' + '''' + CurrentTime + '''' + ',' + '''' + U + '''' +',NULL,NULL,20,NULL,0 )';
      SQLQuery.ExecSQL()
    You could inject queries similar to that, by changing U or P.

  10. #25
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    sad Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Aristrum View Post
    I'm not exactly sure about what you just said, but...

    The queries you're executing still take user input.

    Code:
    Procedure TServerSystem.CreateAccount(U: string; P: string);
    begin
    CurrentTIme := DateTimeToStr(Time);  
      SQLQuery.SQL.Text := 'INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Name, Email, RegNum, Age, Sex, ServerID) VALUES ( ' + '''' + U + '''' + ',0,0,' + '''' + CurrentTime + '''' + ',' + '''' + U + '''' +',NULL,NULL,20,NULL,0 )';
      SQLQuery.ExecSQL()
    You could inject queries similar to that, by changing U or P.
    Thats true, but its going to be filtered.

    But, generally Query(s) will be requested by IDs to make it safer.
    Last edited by Demantor; 05-01-10 at 09:25 PM.

  11. #26
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Demantor View Post
    Thats true, but its going to be filtered.

    But, generally Query(s) will be requested by IDs to make it safer.
    I see no filtering int he snippet posted, hence why I said it ;).

    Requesting by IDs doesnt really make it safer. They still have to said their inputted data along with it, which doesnt remove the problem.

  12. #27
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Aristrum View Post
    I see no filtering int he snippet posted, hence why I said it ;).

    Requesting by IDs doesnt really make it safer. They still have to said their inputted data along with it, which doesnt remove the problem.
    True, but its better than requesting by a direct query(which would be so stupid if it was xD).

  13. #28
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    Quote Originally Posted by Demantor View Post
    True, but its better than requesting by a direct query(which would be so stupid if it was xD).
    Indeed, if you wanted to do a direct query, then you should be on the server :P.

    -

    You might want to try to implement logging, temporary bans, and perhaps interaction with the matchserver if you're up to it. :)

  14. #29
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    This looks damn awesome, good job so far!

  15. #30
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [Delphi] GunZ Control Panel [WIP]

    For aristrum, that wasnt the full CreateAccount procedure this is :
    Code:
    Procedure TServerSystem.CreateAccount(U: string; P: string);
    var
    AID:string;
    begin
    CurrentTIme := DateTimeToStr(Time);
      SQLQuery.SQL.Text := 'SELECT * FROM Account WHERE UserID = ' + '''' + U + '''' ;
      SQLQuery.ExecSQL();
      SQLQuery.Active := true;
      if SQLQuery.Fields[1].AsString = U then // Change Feilds value from 0 to 1
      begin
        log.Lines.Add('Failed to Create Account: ' + U );
        log.lines.add('UserName Already in use!');  //lets test :D
      end
      else
      begin
      SQLQuery.SQL.Text := 'INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Name, Email, RegNum, Age, Sex, ServerID) VALUES ( ' + '''' + U + '''' + ',0,0,' + '''' + CurrentTime + '''' + ',' + '''' + U + '''' +',NULL,NULL,20,NULL,0 )';
      SQLQuery.ExecSQL();
      SQLQuery.SQL.Text := 'SELECT AID FROM Account WHERE UserID = ' + '''' + U + '''';
      SQLQuery.ExecSQL();
      SQLQuery.Active := true; // this is the fix :p     WORKS :D sure?, the aid should be 3 or? na look
      Aid := SQLQuery.Fields[0].AsString; // Gets the AID Field :D
      showmessage(AID);
      sqlquery.SQL.text :=  'INSERT INTO Login (UserID, AID, Password) VALUES ( ' + '''' + U + '''' + ',' + '''' + AID + '''' + ',' + '''' + P + '''' + ')';
      SQLQuery.ExecSQL();
      Log.Lines.Add('User account created : ' + U);
      // DONE :D xD lets see if it works :Dyea
      end;
    end;



Page 2 of 3 FirstFirst 123 LastLast

Advertisement