Skip to main content

Plarium again. How to start programming due to game playing.

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


  1. 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: and Also developer extension is needed: this is for firefox
  2. Plarium company uses flash and flash decompiler (in some case debugger) is required. I've used   JPEXS Free Flash Decompiler . Download link is here :  
  3.  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.
  4. Time and personal challenge.  Main our goal is programming starting. 

First step using Firefox. 

1. Start firefox and developer  tool window. 
2. Navigate to
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 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 : .
 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 


Popular posts from this blog

Upgrade postgres 9.4 to 9.6 at Debian linux

I'm using virtual server based on Debian Linux for some my free projects.  One of them is based on Postgres with PostGIS extension.   This windy rainy day is a good time for executing some upgrade. Also I would like to add partman extension for partituoning.
Checking new version. Update package list :
aptitude update Get: 1 jessie-updates InRelease [145 kB] Get: 2 stretch/updates InRelease [62.9 kB] Get: 3 jessie/updates InRelease [63.1 kB]
 Check for new version:

dpkg-query -l postgresql* Desired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name Version Ar…

Postfix can not start via systemd (simple fix)

Solving problem related to systemd process I like postfix.   This is really smart and secure mail server. I'm helping above  dozen clients around the world and  tunning  postfix is really fun task. This morning I was downgrading postfix  to the stable version for one of the my friends and come across interesting issue. 
root@newserver:/etc/init.d# systemctl status postfix ● postfix.service Loaded: masked (/dev/null; bad) Active: inactive (dead) since вт 2017-06-13 14:35:41 EEST; 1h 48min ago Main PID: 25145 (code=exited, status=0/SUCCESS)чер 13 14:47:09 newserver systemd[1]: Stopped postfix.service.чер 13 14:47:29 newserver systemd[1]: Stopped postfix.service.чер 13 14:58:22 newserver systemd[1]: Stopped postfix.service.чер 13 14:58:23 newserver systemd[1]: Stopped postfix.service.чер 13 15:05:20 newserver systemd[1]: Stopped postfix.service.чер 13 15:29:06 newserver systemd[1]: Stopped postfix.service.чер 13 15:29:06 newserver systemd[1]: Stopped postfix.service.чер 13 15:…

Small python script for monitoring MySQL performance

I have few services which use MySQL as database server. I would like to have information about load in PNG  image  or  in Cacti app.
MySQL   has  performance information at 'SHOW STATUS' command.

Values  which  are monitored : 
 threads_running, threads_connected, thread_cached, slow_queries
 Of course,  it is really easy to add more variables.

Connection to MySQL is accomplished by MySQLdb  module. Typical example of usage is below :
import MySQLdb mydb = MySQLdb.connect(host = 'hostname', user = 'username', password = 'secret', database = 'mysatabase' ) mycursor = mydb.cursor() mycursor.execute('SQL command') sqlresult = cur.fetchall()
Storing data in rrd file is aviable via rrdtools package. This one is present in debian and Centos OS. example of creating file is below: import rrdtool rrdtool.create("myfile.rrd" , "DS:value1:datatype:hea…