Author Topic: [PHP] UJZP  (Read 7923 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
[PHP] UJZP
« on: December 14, 2005, 11:44:21 pm »
UJZP (Unnamed Joe/Zycron Project) is a PHP binary bot, cocreated by me and Zycron (mostly me). So far, it will connect to BNLS (but not do anything) and the connect to BNCS and send 0x50 (it works, too!), but the reply isn't received correctly. Boo hoo.

Current things finished:
-- Packet buffer
-- Configuration class (all constants)
-- BNLS class, with connect(), disconnect(), and a stub for checkrevision().
-- BNCS class, with connect(), disconnect(), and bncs_SID_AUTH_INFO().
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: [PHP] UJZP
« Reply #1 on: December 16, 2005, 04:01:49 pm »
Out of curiousity, doesn't PHP allow you to import C functions?

So why not do it in C and then write a PHP frontend?
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [PHP] UJZP
« Reply #2 on: December 16, 2005, 04:10:20 pm »
Because I don't know C well enough. I'd also like bragging rights, but less so than I'm just bored.

I've successfully sent BNLS 0x10 and received it, and then the same for BNCS 0x50. Woo hoo. Time to parse 0x50 and use BNLS for checkrevision (I didn't want to write those on my own, but I may later).

Basically, its the easy stuff now (except maybe checkrevision). The hard stuff was writing the int16/int32 handlers in PHP, and receiving data (not sure how I managed it, really).

Wish me luck, friends!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: [PHP] UJZP
« Reply #3 on: December 16, 2005, 05:46:53 pm »
Because I don't know C well enough. I'd also like bragging rights, but less so than I'm just bored.

I've successfully sent BNLS 0x10 and received it, and then the same for BNCS 0x50. Woo hoo. Time to parse 0x50 and use BNLS for checkrevision (I didn't want to write those on my own, but I may later).

Basically, its the easy stuff now (except maybe checkrevision). The hard stuff was writing the int16/int32 handlers in PHP, and receiving data (not sure how I managed it, really).

Wish me luck, friends!

To me, a C bot would be more impressive than a PHP bot.  That's just me.

PHP's implicit variable declarations, forgiving syntax and built-in optimization engine make programming something like this in PHP a lot easier than it would be in C.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [PHP] UJZP
« Reply #4 on: December 16, 2005, 07:02:43 pm »
Well yea but most of the things associated with bot programming in general is transparent between PHP and C althought integrating them both would be impressive.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: [PHP] UJZP
« Reply #5 on: December 16, 2005, 07:06:46 pm »
Well yea but most of the things associated with bot programming in general is transparent between PHP and C althought integrating them both would be impressive.

What do you mean they're transparent?  Haha, your word choice confused me! :(

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: [PHP] UJZP
« Reply #6 on: December 16, 2005, 07:25:49 pm »
If somebody really wanted a C binary bot, it would be EASY++ to modify Cattle Chat.  I already do the same type of packets, and the same password hashing.  CheckRevision and CDKey Decode could be done with tha public library that I forget the name of.  The packets are built the same way, just redefine some constants and gg

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [PHP] UJZP
« Reply #7 on: December 16, 2005, 07:52:28 pm »
Well yea but most of the things associated with bot programming in general is transparent between PHP and C althought integrating them both would be impressive.

What do you mean they're transparent?  Haha, your word choice confused me! :(

Well I mean if you implement a bot in PHP it shouldn't be that much of a difference to write one in C or C++ (If you go OO)
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [PHP] UJZP
« Reply #8 on: December 16, 2005, 11:15:52 pm »
If someone wanted a C bot, they should go download Slackchat..

..but they don't, so we'll stay on topic! =p

Project renamed to Lumber Bot. Having a cut and paste war right now, brb.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: [PHP] UJZP
« Reply #9 on: December 16, 2005, 11:38:54 pm »
Well I mean if you implement a bot in PHP it shouldn't be that much of a difference to write one in C or C++ (If you go OO)

I personally think it'd be easier in PHP, but that's much me. :)

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [PHP] UJZP
« Reply #10 on: December 17, 2005, 01:12:42 am »
Yes for some reason even though the syntax is almost the same I feel more powerful in PHP. Perhaps it's because of all the PHP documentation and how it's one standard and one implementation over all platforms.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [PHP] UJZP
« Reply #11 on: December 17, 2005, 01:13:33 am »
Sneak preview, because I love you!

Quote
[INFO] Welcome to Lumber Bot v0.1!
[INFO] Copyright (C) 2005 Joe LaFrance
[INFO] Development Edition
[BNLS] Connecting to bnls.valhallalegends.com:9367..
[BNCS] Connected!
[BNLS] Getting verbyte..
[BNLS] Verbyte: 0xcd

[BNCS] Connecting to hdx.no-ip.org:6112..
[BNCS] Connected!
[BNCS] Requesting authorization..
[DEBUG]
[BNCS] Received authorization challenge.

Notice: Uninitialized string offset: 7 in /home/joe/public_html/UJZP/util.php on line 75
Debug: MPQ Number ==

Notice: Uninitialized string offset: 7 in /home/joe/public_html/UJZP/util.php on line 75
[BNLS] Performing CheckRevision..
[BNLS] Hashing CD-Key..
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: [PHP] UJZP
« Reply #12 on: December 17, 2005, 01:26:22 am »
Why do you have Notice's t urned on?

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: [PHP] UJZP
« Reply #13 on: December 17, 2005, 01:55:02 am »
I wrote an SRP implementation in PHP but I lost it :[
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [PHP] UJZP
« Reply #14 on: December 17, 2005, 02:10:16 am »
Why do you have Notice's t urned on?
Because I don't feel like turning them off. They tell me somethings wrong, and 100% of the time, that means I did something wrong, and I need to fix something. =)

I wrote an SRP implementation in PHP but I lost it :[
Crash and burn.


Passed 0x51 authorization challenge. Time to sit and spin my way to a complete bot.
I'd personally do as Joe suggests

You might be right about that, Joe.