Auto Packet Header Updater - BST (Boycot Sulake Today)q

Page 1 of 2 12 LastLast
Results 1 to 25 of 49
  1. #1
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Hello, I am Josh also known as DjTroy.
    I was banned on my other account so I had to make a new account to post this.
    Me and Droppy were making an auto header updater, and we decide to release it.

    EDIT:
    Why does the MODs not accept my posts?

    Thats works. But, you need to add the line positioning..
    We do some packets for you test.

    We do a simple thing to do that.
    An split on //--------... but, cuz the lines change (ever //-------) line, so
    if you split that, you can separe the codes, in some parts
    and if the split, contains a code, for example (public HabboStreaming...) will check it
    and will jump some lines to where show the code. Can be a import or addConnection... Blah Blah Blah.

    See the code:

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Text.RegularExpressions;
    using System.IO;
    
    namespace Ferri.APU
    {
    class AutoPacketUpdate
    {
    public static string GetFinalCode(string strSource)
    {
    string strBegin = "[";
    string strEnd = "]";
    bool includeBegin = false;
    bool includeEnd = false;
    string[] result = { string.Empty, string.Empty };
    int iIndexOfBegin = strSource.IndexOf(strBegin);
    
    if (iIndexOfBegin != -1)
    {
    // include the Begin string if desired 
    if (includeBegin)
    iIndexOfBegin -= strBegin.Length;
    
    strSource = strSource.Substring(iIndexOfBegin + strBegin.Length);
    
    int iEnd = strSource.IndexOf(strEnd);
    if (iEnd != -1)
    {
    // include the End string if desired 
    if (includeEnd)
    iEnd += strEnd.Length;
    result[0] = strSource.Substring(0, iEnd);
    // advance beyond this segment 
    if (iEnd + strEnd.Length < strSource.Length)
    result[1] = strSource.Substring(iEnd + strEnd.Length);
    }
    }
    else
    // stay where we are 
    result[1] = strSource;
    return result[0];
    }
    public static string addHabboConnectionMessageEventGetCode(string strSource)
    {
    string strBegin = ".addHabboConnectionMessageEvent(new ";
    string strEnd = "(this.";
    bool includeBegin = false;
    bool includeEnd = false;
    string[] result = { string.Empty, string.Empty };
    int iIndexOfBegin = strSource.IndexOf(strBegin);
    
    if (iIndexOfBegin != -1)
    {
    // include the Begin string if desired 
    if (includeBegin)
    iIndexOfBegin -= strBegin.Length;
    
    strSource = strSource.Substring(iIndexOfBegin + strBegin.Length);
    
    int iEnd = strSource.IndexOf(strEnd);
    if (iEnd != -1)
    {
    // include the End string if desired 
    if (includeEnd)
    iEnd += strEnd.Length;
    result[0] = strSource.Substring(0, iEnd);
    // advance beyond this segment 
    if (iEnd + strEnd.Length < strSource.Length)
    result[1] = strSource.Substring(iEnd + strEnd.Length);
    }
    }
    else
    // stay where we are 
    result[1] = strSource;
    return result[0];
    }
    
    public static string ImportGetCode(string code)
    {
    string[] xx = code.Split('.');
    return xx[1];
    }
    
    public static string ConvertToPacketId(string OldPacketCode, string file)
    {
    string[] Classes = Regex.Split(file, "//------------------------------------------------------------");
    
    foreach (string SepareCodes in Classes)
    {
    if(SepareCodes.Contains("public class HabboMessages implements"))
    {
    string[] Lines = Regex.Split(file, "\n");
    int i = 0;
    foreach (string Line in Lines)
    {
    if (Line.Contains(OldPacketCode))
    {
    if (!Line.Contains("import"))
    {
    string[] LastStep = Regex.Split(Line, " = ");
    return GetFinalCode(LastStep[0]);
    
    }
    }
    i++;
    }
    }
    }
    return "";
    }
    
    public static string AddCode(string code, string packetid, string PacketCode, string Comment = "")
    {
    
    
    PacketCode = PacketCode.Replace("_-", "");
    PacketCode = PacketCode.Replace(";", "");
    return ("internal const short " + code + " = " + packetid + "; // " + PacketCode + "\n\r");
    }
    
    public static string ReleaseFilter(string Line)
    {
    Line = Line.Replace(" ", "");
    Line = Line.Replace("vark", "");
    Line = Line.Replace(":", "");
    Line = Line.Replace("String=", "");
    Line = Line.Replace(";", "");
    Line = Line.Replace("\"", "");
    return Line;
    }
    
    
    public static void Start()
    {
    Console.ForegroundColor = ConsoleColor.White;
    Console.BackgroundColor = ConsoleColor.Gray;
    Console.WriteLine("###############################################################################");
    Console.WriteLine("### Maded by Droppy & Josh ###");
    Console.WriteLine("###############################################################################");
    Console.ResetColor();
    Console.WriteLine();
    var F5 = new StreamReader("swf/scriptss.txt");
    
    string All = F5.ReadToEnd();
    string[] Classes = Regex.Split(All, "//------------------------------------------------------------");
    foreach (string SepareCodes in Classes)
    {
    if (SepareCodes.Contains("RELEASE63-"))
    {
    string[] Classes2 = Regex.Split(SepareCodes, "\n");
    int line = 0;
    foreach (string Line in Classes2)
    {
    if (line == 11)
    {
    Console.Write("Release Atual: ");
    Console.ForegroundColor = ConsoleColor.Blue;
    Console.WriteLine(ReleaseFilter(Line));
    Console.ResetColor();
    }
    
    line++;
    }
    }
    }
    
    Console.WriteLine();
    Console.WriteLine("//==> Be welcome.");
    Console.WriteLine();
    
    string Put = "By Droppy \n\r\n\r";
    
    int Count = 0;
    foreach (string SepareCodes in Classes)
    {
    if (SepareCodes.Contains("public class HabboCommunicationDemo extends"))
    {
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 27)
    {
    Put = Put + AddCode("SendToken", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    if (LineCount == 28)
    {
    Put = Put + AddCode("SendPublicKey", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    
    if (SepareCodes.Contains("public class HabboInventory extends"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 45)
    {
    Put = Put + AddCode("SendInterface", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    if (SepareCodes.Contains("public class HabboMessenger extends"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 32)
    {
    Put = Put + AddCode("SendMinimailCount", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    
    if (SepareCodes.Contains("public function IncomingMessages(_arg1:HabboNavigator){"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 21)
    {
    Put = Put + AddCode("SendHomeRoom", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    if (LineCount == 28)
    {
    Put = Put + AddCode("SendFavourites", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    
    if (SepareCodes.Contains("public class VideoOfferManager implements"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 5)
    {
    Put = Put + AddCode("SendFuserights", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    
    if (SepareCodes.Contains("public class FriendList {"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 6)
    {
    Put = Put + AddCode("SendFriends", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    if (SepareCodes.Contains("public class AvatarImageWidget implements _-1jT {"))
    {
    
    string[] nClasses = Regex.Split(SepareCodes, "\n");
    int LineCount = 0;
    foreach (string Line in nClasses)
    {
    if (LineCount == 6)
    {
    Put = Put + AddCode("SendUserInformation", ConvertToPacketId(ImportGetCode(Line), All), ImportGetCode(Line));
    }
    LineCount++;
    }
    Count = Count + 1;
    }
    
    }
    
    string[] lines = {Put};
    
    System.IO.File.WriteAllLines("Packet.ini", lines);
    Console.ForegroundColor = ConsoleColor.Green;
    //Console.WriteLine(Count + " packet(s) saved(s) in Packet.ini!");
    Console.WriteLine(lines[0]);
    Console.ResetColor();
    
    Console.WriteLine("");
    Console.WriteLine("Press Any Key to Close.");
    }
    }
    
    class Program
    {
    static void Main(string[] args)
    {
    try
    {
    AutoPacketUpdate.Start();
    Console.ReadKey();
    }
    catch
    {
    Environment.Exit(1);
    }
    }
    } 
    }

    See: In debug folder, made a folder called swf, and put the HabboSWF decompressed (AS3 txt code).
    You need to add packets one by one, but we put some packets for you see. If the packet dont show, thats cuz in that version dont exists that packet... Or some other reason.
    Please, dont change the Credits :D

    Tyou :D (Sorry for bad english, this thread is 99% made by Droppy and he's from Brasil)
    Like+Rep please if it helped you.
    Last edited by Sean; 23-10-12 at 10:26 PM. Reason: restoring thread


  2. #2
    Banned Divide is offline
    BannedRank
    Aug 2011 Join Date
    British CoderLocation
    1,013Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q


  3. #3
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by Divide View Post
    Read my m*ther f*cking thread..
    before you m*ther f*cking post.

  4. #4
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Very Good friend :D

  5. #5
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Download link? joking, this is cool/

    Howd we get the As3 source code?

  6. #6
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by JohnHearfield View Post
    Download link? joking, this is cool/

    Howd we get the As3 source code?
    Protip; AS3 sorcerer.

    Open SWF in as3 sorcerer and save all scripts in 1 file.

  7. #7
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Reading the code, this just rips the ids from the swf, this is what we all could do fucking 4 months ago by viewing AS3 source.

    How do you know which id is which, because either i missed out a code, or you are the biggest retard.

  8. #8
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by Zak© View Post
    Reading the code, this just rips the ids from the swf, this is what we all could do fucking 4 months ago by viewing AS3 source.

    How do you know which id is which, because either i missed out a code, or you are the biggest retard.
    Me and Droppy were making an auto header updater, and we decide to release it.
    Hopefully you don't point it out only to me, because then you would be soo unfair!
    Droppy asked me to release it for him, so not only blame me. I didn't made this 100% on my own.

  9. #9
    C# Developer neto737 is offline
    MemberRank
    Oct 2010 Join Date
    Environment.csLocation
    274Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Very good >:)

  10. #10
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by neto737 View Post
    Very good >:)
    If it does work, it will be good for 2 weeks before Sulake easily patch this.

  11. #11
    Account Upgraded | Title Enabled! AWA is offline
    MemberRank
    Feb 2008 Join Date
    1,320Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    This is nearly the same method as I use manually for finding ID's, but wouldn't this be a bit inaccurate?

  12. #12
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts
    Quote Originally Posted by Zak© View Post
    If it does work, it will be good for 2 weeks before Sulake easily patch this.
    my cracker is released twice and still not patched. i dont think this will be patched to...

  13. #13
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by joopie View Post
    my cracker is released twice and still not patched. i dont think this will be patched to...
    It will be eventually once one of the insider snitches email Sulake.

  14. #14
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    I made that, with Josh, and I ask to him post to me. Cuz I dont speak so good english, so... I cant write alright.
    But thats work. Its what needs to know.
    Last edited by Droppy; 21-10-12 at 12:10 AM.

  15. #15
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Stop flaming thread, he just try to help us, maybe people don't like him, but we need everyone to fck habbo ;p

  16. #16
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts
    Quote Originally Posted by Zak© View Post
    It will be eventually once one of the insider snitches email Sulake.
    I remember when Josh called Dom a spy xD
    Anyway this is disgustingly manual.

  17. #17
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by Zak© View Post
    It will be eventually once one of the insider snitches email Sulake.
    I bet sulake lurk this section too...

  18. #18
    Demi-god on these 'ere wa DominicGunn is offline
    MemberRank
    Jun 2011 Join Date
    347Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by Caustik View Post
    I remember when Josh called Dom a spy xD
    Anyway this is disgustingly manual.
    A spy? Please, i'm better than that! :)

  19. #19
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    I don't understand a single bit of this thread.

  20. #20
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    It's nice, but we need all packet id changer :) I need Butterstorm updated ids :)
    Last edited by =dj.matias=; 21-10-12 at 09:40 AM.

  21. #21
    Account Upgraded | Title Enabled! W00dL3cs is offline
    MemberRank
    Mar 2012 Join Date
    202Posts
    Honestly, this is the most stupid way I've ever seen to update messages, and still requires MANY manual operations. If a single line is added or removed, all the process will be fucked up o.o

  22. #22
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    In really, if you made all packets, you can save alot of times. Without made one by one, will made automactly for you. And generate the code.

  23. #23
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by W00dL3cs View Post
    Honestly, this is the most stupid way I've ever seen to update messages, and still requires MANY manual operations. If a single line is added or removed, all the process will be fucked up o.o
    Yes, but at least I share something and you only show things to look cool.

  24. #24
    Account Upgraded | Title Enabled! W00dL3cs is offline
    MemberRank
    Mar 2012 Join Date
    202Posts
    Quote Originally Posted by MrMime View Post
    Yes, but at least I share something and you only show things to look cool.
    I have no interests in looking cool.
    Just wanted to show you how little cool you are.
    Always better to release nothing, than actually release a bunch of sh*t.
    Sorry to show you the crude truth.

  25. #25
    Banned MrMime is offline
    BannedRank
    Oct 2012 Join Date
    11Posts

    Re: Auto Packet Header Updater - BST (Boycot Sulake Today)q

    Quote Originally Posted by W00dL3cs View Post
    I have no interests in looking cool.
    Just wanted to show you how little cool you are.
    Always better to release nothing, than actually release a bunch of sh*t.
    Sorry to show you the crude truth.
    So you better wish no emulators? Because I think they're all shit (unfinished, unstable, non updated etc..)



Page 1 of 2 12 LastLast

Advertisement