Plarium again. How to start programming due to game playing.
I would like to say that writing a small script which is helping to have advantages against other peoples is not good. Writing this post I have a goal to prepare a way to the fanny world of the programming. I hope this article helps to use computer not a game machine only.
Previous article related to this one is placed at :old script
Requirements
- Internet browser with developer tools. Firefox or chrome are a good choice. Both of them can be installed at the any popular operations system. Download links are there: https://www.mozilla.org/uk/firefox/new/ and https://www.google.com/chrome/browser/desktop/index.html. Also developer extension is needed: this is for firefox
- Plarium company uses flash and flash decompiler (in some case debugger) is required. I've used JPEXS Free Flash Decompiler . Download link is here : https://www.free-decompiler.com/flash/download/
- I've used python for writing some code. I'm lazy man and 've used my investigation and python 2.7 . You can use any it is not so important. https://www.python.org/downloads/
- Time and personal challenge. Main our goal is programming starting.
First step using Firefox.
1. Start firefox and developer tool window.
2. Navigate to plarium.com
3. Take a look at network windows at firefox developer tools page. It is looks like :
left side of the page contains request from your browser to server. Right side contains detail of the request. At this moment only html and Flash are been interested for investigation.
Press "HTML" and "Flash" at the menu bar. After this network page is look like :
Take a look at the left side.
200 and GET inform as about succesful request (status 200) and used http method GET. List of codes are preset at https://en.wikipedia.org/wiki/List_of_HTTP_status_codes. 200 means that all are OK. HTTP has eight method but ussualy GET and POST are used. This image inform as that our browser download game from next URL : https://cdn01.x-plarium.com/pirates/client/ppen/uc_04_11_0957_636275014576166798.swf .
Keep in mind this URL and file . We need it for future investigation.
Next one is a POST request to segment.ashx:
Lets try to understand this request:
First string is flash file which produces our request.
- sign-code is special string with control code.
- signin-authSeed and signin-authKey are credential string. I hope you understand why this image has this black color.
- signin-userId is local login name
- sever-method is special field selecting user activity. (I've finished quest and browser add 'CloseQuest')
- last one string is data which is sending by browser. look like "t" is time but i'm not sure at this moment.
Next part contains working with swf file
Comments
Post a Comment