Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: [AMF packet] Decoding AMF binary data

  1. #11
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Expanding on what @(you need an account to see links) said, sending AMF requests in Java can be a little tricky. I'd suggest using (you need an account to see links). There should be examples on Google.

    But here's the main class you want: (you need an account to see links)

  2. The Following User Says Thank You to Zachafer For This Useful Post:

    damian002 (07-31-2013)

  3. #12

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    Its actually pretty simple , heres a amf packet with no function params in vb.net:

    PHP Code:
            Dim testwrapper As New httpwrapper
            Dim thefunction 
    "/amfphp.DiscoveryService.getServices" '31
            Dim postdata = Chr(0) & Chr(3) & Chr(0) & Chr(0) & Chr(0) & Chr(1) & Chr(0) '
    Header Data
            Dim footerdata 
    Chr(0) & Chr(2) & "/1" Chr(0) & Chr(0) & Chr(0) & Chr(5) & Chr(10) & Chr(0) & Chr(0) & Chr(0) & Chr(0'footer data
            Dim testdim = Chr((Len(thefunction))) '
    Function length

            postdata 
    postdata testdim thefunction footerdata
            Dim html 
    As String testwrapper.Request("AMF"txt_hostname.Text "?" postdata
    Result...




    Here is the same thing with a single param....

    PHP Code:
            Dim testwrapper As New httpwrapper
            Dim thefunction 
    "/amfphp.DiscoveryService.describeService(EventService)"
            
    Dim postdata Chr(0) & Chr(3) & Chr(0) & Chr(0) & Chr(0) & Chr(1) & Chr(0'Header Data
            Dim footerdata = Chr(0) & Chr(2) & "/1" & Chr(0) & Chr(0) & Chr(0) & Chr(9) & Chr(10) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(1) & Chr(2) & Chr(0) & Chr(1) '
    footer data  01020001
            Dim testdim 
    Chr((Len(thefunction))) 'Function length

            postdata = postdata & testdim & thefunction & footerdata
            Dim html As String = testwrapper.Request("AMF", txt_hostname.Text & "?" & postdata) 

    Of course you need a custom http wrapper as amf uses post request but has a slightly altered header its simple stuff heres a simple vb.net httpwrapper I added amf header too..




    You can actually automate the entire thing , joes bot contains a parseAmf function I made that sets it all out for you. The hardest part I found was decoding the reply data back but its not to hard just a bit of a annoyance especially as I did joes bot in c++ im not used to that language .

  4. The Following User Says Thank You to DarkByte For This Useful Post:

    j03 (09-13-2013)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •