Table of Contents

INSTALL CHARLES .................................................................................................................................... 3 Before you begin ................................................................................................................................. 3 Are you running 32 bit or 64 bit? .................................................................................................... 3 Install Java Runtime Environment .................................................................................................. 5 Download and Install Charles ............................................................................................................. 7 Mozilla Firefox Proxy Configuration.................................................................................................. 11 Automatic...................................................................................................................................... 11 Manual .......................................................................................................................................... 12 INSTALL NEW SECURE BOT OR APPLY THE PATCH................................................................................ 13 Replace your bot with the new version ............................................................................................ 13 SET UP CHARLES FOR SECURE BROWSING ........................................................................................... 14 Install Charles CA SSL Certificate (Export ) ........................................................................................ 14 SET UP CHARLES FOR BOTS ................................................................................................................... 15 Map Remote Settings........................................................................................................................ 15 Proxy SSL Settings ............................................................................................................................. 20 Install Charles Certificate in Internet Explorer under Trusted Root Certificates .............................. 22 HOW TO USE CHARLES WITH BOTS WITH SECURE BROWSING............................................................ 27 Bots ................................................................................................................................................... 27 SETTINGS FOR USING CHARLES FOR REQUESTS ................................................................................... 28 Import Charles SL Certificate into Waterfox/Firefox ........................................................................ 28 Import Certificate into Chrome......................................................................................................... 31 Add SSL Proxy to FB-FB-0.castle.zynga.com ..................................................................................... 32 Change Rewrite Settings ................................................................................................................... 34 Charles Settings................................................................................................................................. 36 HOW TO USE REWRITE TO REQUEST ITEMS ......................................................................................... 37 Before You Begin............................................................................................................................... 37 How to find your UID .................................................................................................................... 37 How to use Rewrite........................................................................................................................... 37 Rules – Settings ................................................................................................................................. 40 ITEM COUNT ................................................................................................................................. 40 | Imperial Manual for Secure Browsing 1

Send FROM (acct you are in)......................................................................................................... 41 Send TO (acct you are sending to) ................................................................................................ 42 ITEM CODE .................................................................................................................................... 43 Additional rules ................................................................................................................................. 43 Send the request ............................................................................................................................... 44 Breakpoint On ............................................................................................................................... 44 Send the request ........................................................................................................................... 44 Breakpoint Off ............................................................................................................................... 45 TROUBLESHOOTING .............................................................................................................................. 47 Bot won’t start .............................................................................................................................. 47 Certificate Errors ............................................................................................................................... 47 Internet Explorer ........................................................................................................................... 47 Waterfox/Firefox........................................................................................................................... 48 Rewrite Troubleshooting Checklist – Common Problems ................................................................ 49 Unlock your Castleville Inbox Solution ............................................................................................. 49

| Imperial Manual for Secure Browsing

2

INSTALL CHARLES
These instructions will guide you through installing a 30-day trial version of Charles Web Debugging Proxy.

Before you begin
1. You must know if you are running Windows 32 bit or Windows 64 bit. 2. You must have either Firefox browser (for 32 bit) or Waterfox browser (for 64 bit) installed. 3. You must have Java Runtime Environment installed.

Are you running 32 bit or 64 bit? To find out whether you are running 32 bit or 64 bit:  Click the START button at the bottom left of your screen  Right-click Computer and select Properties  Check the System Type in the System window.

| Imperial Manual for Secure Browsing

3

| Imperial Manual for Secure Browsing

4

Install Java Runtime Environment To download and install Java Runtime Environment:  Go to www.java.com/en/download  Click Free Java Download

 

Click Agree and Start Free Download button. Double-click the downloaded file and the installation will open.

| Imperial Manual for Secure Browsing

5

 Clear the checkbox for Install the Ask Toolbar and make Ask my default search provider  Click Next button  After the installation. you will be asked if you wish to install the free browser add-on from Ask. After the installation. the following window is displayed. Click Install button on the Welcome to Java window. Click Close | Imperial Manual for Secure Browsing 6 .

charlesproxy.Download and Install Charles To download Charles:  Navigate to the following website from your browser: http://www.com/  Click on the link to Download a free trial | Imperial Manual for Secure Browsing 7 .

 Click the link to download the version that is correct for your Windows system – either 32 bit or 64 bit.  Click the Run button. After the file is downloaded:  Double-click on the downloaded file to begin the installation.  Click Next button at the Welcome window. | Imperial Manual for Secure Browsing 8 .

| Imperial Manual for Secure Browsing 9 . Do NOT change the default folder location unless you are an experienced computer user and have a reason for doing so. Check the box for I accept the terms in the License Agreement and click Next botton  Click the Next button on the Destination Folder window.

| Imperial Manual for Secure Browsing 10 . Click Install button. Click Finish button when installation is finished.   Wait while the program installs.

Mozilla Firefox Proxy Configuration Note: Depending on the version of Charles. Automatic After installation. | Imperial Manual for Secure Browsing 11 .  Click OK to restart Firefox. Click Install at the Mozilla Firefox Proxy Configuration window.  Open Firefox or Waterfox browser. the following steps might happen automatically or you might need to run them manually. Charles should open automatically.

com and click the link download and install the add-on manually.charlesproxy. A 30-day trial version of Charles Web Debugging Proxy is now installed on your computer.Manual If you are not prompted for the Firefox addin:  Navigate to www. | Imperial Manual for Secure Browsing 12 .

change the Settings to your OWN timezone and make sure the Use proxy box is ticked. which contains the new files Note: After you apply the patch.txt file into the main bot location o Replace the codebase-php folder with the new one.INSTALL NEW SECURE BOT OR APPLY THE PATCH You can either replace your bots with the latest version that has the relevant patch applied. or you can apply the patch yourself. | Imperial Manual for Secure Browsing 13 . Replace your bot with the new version    Download the full Secure Castleville Bot from your group Navigate to the location where your bot is currently installed Replace your old bot with the new one (either delete and copy or overwrite existing files) Apply the patch   Download the patch from your group Navigate to the location where your bot is currently installed o Copy the options.

SET UP CHARLES FOR SECURE BROWSING Install Charles CA SSL Certificate (Export )   Open Charles Click Help | Install Charles CA SSL Certificate  Click Install Certificate | Imperial Manual for Secure Browsing 14 .

Next.castle.com zynga?-a.zynga.zynga.com To map the remote settings in Charles:  Select Tools | Map Remote | Imperial Manual for Secure Browsing 15 . click OK.castle. Finish. When the Import Was Successful popup is displayed.net fb-fb-0. SET UP CHARLES FOR BOTS Map Remote Settings This section explains how to map remote settings for the following locations: fb-client-0.akamaihd.  Click Next.

  Click to Enable Map Remote Click Add. | Imperial Manual for Secure Browsing 16 . The Edit Mapping box is displayed.

zynga.  In this box you will add the map https to http for fb-client-0. | Imperial Manual for Secure Browsing 17 .castle.com Enter the details EXACTLY as shown in the next screenshot and click OK.

com | Imperial Manual for Secure Browsing 18 .zynga.akamaihd. Your remote settings should now look like this:  Add the mappings for the following zynga?-a.net fb-fb-0.castle.

| Imperial Manual for Secure Browsing 19 .You will now have the three enabled maps as shown in the next screenshot.

castle.net:443 To add the proxy SSLs:  Click Proxy | Proxy Settings | Imperial Manual for Secure Browsing 20 .castle.akamaihd.com:443 zynga?-a.com:443 fb-client-0.castle.zynga. Proxy SSL Settings This section explains how to add the following proxy SSL locations: fb-fb-0. Click OK.com:443 *.zynga.zgncdn.

Enter each location and port and click OK. | Imperial Manual for Secure Browsing 21 .Click SSL tab and then click Add.

| Imperial Manual for Secure Browsing 22 .After all four are added. your proxy settings will look like this:  Click OK. Install Charles Certificate in Internet Explorer under Trusted Root Certificates To install the Charles SSL certificate in Internet Explorer:     Open Internet Explorer Click on Tools | Internet Options | Content Click Certificates Click on Trusted Root Certification Authorities tab.

 Click Import | Imperial Manual for Secure Browsing 23 .

| Imperial Manual for Secure Browsing 24 . then select the file Charles-proxy-sslproxying-certificate. Click Next  Navigate to the Doc folder below the Charles folder.  The file is now displayed in the following windows.crt and click Open.

| Imperial Manual for Secure Browsing 25 . Click Next  Accept the default to place all certificates in the Trusted Root Certificate store and click Next.

 Click Finish  Click Yes to accept the security warning | Imperial Manual for Secure Browsing 26 .

remove checkbox from Enable Rewrite 4. Map Remote. Disable Rewrite – select Tools. Enable Remote mapping – select Tools. Click OK and close the Certificates window. Enable Map Remote 3. HOW TO USE CHARLES WITH BOTS WITH SECURE BROWSING Now that everything is set up. Open your bot and run links or neighbour visits | Imperial Manual for Secure Browsing 27 . To run BOTS: 1. Rewrite. Optional – Disable Recording and Breakpoints (your bots should run faster this way) 5. Run Charles 2. Bots NOTE: The big difference is that you must run Charles while you are running your bots. you can go ahead and use the bots.

there is no need to go any further. Import Charles SL Certificate into Waterfox/Firefox   Open Waterfox Click Tools. click the Encryption tab and View Certificates button. Options.SETTINGS FOR USING CHARLES FOR REQUESTS Note: If you only run bots. | Imperial Manual for Secure Browsing 28 .  Click the Advanced icon.

 Click Import to import the SL Certificate you just exported. | Imperial Manual for Secure Browsing 29 .

 Browse to C:\Program Files\Charles\Docs. highlight the file and click Open to import the Certificate from Charles  Click OK to close the Certificate Manager window and close the Options window | Imperial Manual for Secure Browsing 30 .

Import Certificate into Chrome   Open Google Chrome Go to Options  Scroll Down and click Advanced Settings | Imperial Manual for Secure Browsing 31 .

Next and Finish. start Castleville. Next.castle.com  Add: fb-fb-0. The import was success popup is displayed. Import. and browse to C:\Program Files\Charles\Doc   Click Open. Click on Manage Certificates. SSL and Breakpoints.castle. send any request and when you see that address on left side. Next time you start Charles. right-click and select SSL and Breakpoints. Note: The easiest way to do this is to start Charles. Proxy Settings. | Imperial Manual for Secure Browsing 32 . log in your AKA.zynga.zynga. Close the import windows. Add SSL Proxy to FB-FB-0.com:443 under Proxy. they will be under appropriate listings.

Breakpoints. It should look like this: | Imperial Manual for Secure Browsing 33 . When done. check your Breakpoint Settings by going to Proxy.

Proxy Settings. SSL tab. | Imperial Manual for Secure Browsing 34 .  Check your SSL settings: Click the gear icon (far right of Charles menu). Change Rewrite Settings Change your Rewrite settings to secure mode. double-click the Locations in the top box and change the settings to Protocol https and port 443.   Click Tools. Rewrite. Select each rule.

 You must do this for every Rewrite Rule you want to use from now on. | Imperial Manual for Secure Browsing 35 .

you will see this when using Breakpoint before a request. Charles Settings To run Charles REQUESTS: 1. Enable Rewrite – select Tools. It’s a good idea to do this to verify everything is working correctly. Map Remote. remove the checkbox from Enable Map Remote 3. If everything is right. Disable Remote mapping – select Tools. click checkbox to Enable Rewrite | Imperial Manual for Secure Browsing 36 . Run Charles 2. Rewrite.

INSTALL CORRECT BROWSER .pl/page. not Zynga) In Charles:  Make sure the Recording button is switched on and Breakpoint is off. Download the Imperial Rules. ITEM CODES –are available here http://www. (see How to Find Your UID) How to find your UID How to use Rewrite 1. 3. 3.xml file to your desktop and have it ready to import (available from group) Note: Other XML files are available and after you understand the settings described in this document you may wish to use another. Start Charles Web Proxy. Start Facebook. | Imperial Manual for Secure Browsing 37 . 1.HOW TO USE REWRITE TO REQUEST ITEMS Before You Begin Before you can use Rewrite. HAVE YOUR UID number and your aka's UID number handy. Start Castleville (use the Facebook application. you must prepare.Waterfox or Mozilla browser is installed 2. 4.castlevillepolska. 4. 2.php?al=itemsall. DOWNLOAD XML FILE – This will really help you because it contains a basic set of rules you can use.

dropbox. it is available here: https://www.com/s/ao9lk0g08lo4pyb/Imperial. Click Enable Rewrite (if not already enabled) Click the Import button and navigate to where you downloaded the Imperial.xml file the first time you use Rewrite. The Rewrite Settings box is displayed.xml file. | Imperial Manual for Secure Browsing 38 .   Click on Tools in the menu bar and then click Rewrite.xml Note: You only need to import the Imperial. If you did not already download this file.

| Imperial Manual for Secure Browsing 39 .

 Double-click on the rule to open the Rule. | Imperial Manual for Secure Browsing 40 .  Click OK. The top rule requests one item and the bottom rule requests 25. In Charles:  Click ITEM COUNT to select the settings.Rules – Settings ITEM COUNT 1. Note: Only one rule can be ticked at a time.  Place a tick in the one you want to use.

 Edit the value to replace %22uid-goes-here%22 with %22(your dummy Zynga Userid)%22  Click OK. In Charles:  Click Send FROM to select the settings.Send FROM (acct you are in) This is the UID of the account you are sending from and you are IN. | Imperial Manual for Secure Browsing 41 . 2.  Double-click on the rule to open the Rule. Note: Every request you send from will be from this Zynga Userid until changed.

Send TO (acct you are sending to) This is the UID of the account person/account you are sending TO. Note: Every request you send will be to this Zynga Userid until changed. In Charles:  Click Send TO  Double-click the rule  Edit the value to replace %22uid-goes-here%22 with %22(your/neighbor Zynga Userid)%22  Click OK. | Imperial Manual for Secure Browsing 42 . 1.

edit the value with the item being replaced. edit the value with the item being replaced. 1.  Use the drop-down to select Type = Body  Make sure both checkboxes in the Where section are ticked  Enter the code for the item you will replace in the Match value field  Enter the code for item you want in the Replace value field  Click OK. if you click on the Valentine Shop in your game and request pink lace and you really want celestial blessings. you will match PinkLaceMaterial_01 and replace it with CelestialBlessingCraftable_01. Additional rules You can add additional rules (settings) for different items or different UIDs.ITEM CODE This section contains the settings for the item you will match and replace. 1. The following shows how to add a new Item Code rule.  In the Replace section. In Charles:  Click ITEM CODE  Double-click the rule  In the Match section.  Click Item Code to select it. | Imperial Manual for Secure Browsing 43 .  Click the Add button to add a new rule. For example. Note: You can request any item here provided you have the code. In Charles:  Click Tools and Rewrite from the menu bar. This example uses BrassNuggetMaterial_01  Click OK. This example uses PinkLaceMaterial_01. A blank rule screen is displayed.

You will see in the bottom right corner whether they are on or off. | Imperial Manual for Secure Browsing 44 . In Castleville:  Click on the Valentine Shop (or building you set up for) and send your request. Send the request 1.You will now see the second rule is added.  Click to switch on both the Recording and Breakpoints buttons. Send the request Breakpoint On This is optional but if you are having any problems. you might want to use the breakpoint on/off to check whether Charles is working.

you can check that the snapi_proxy.  Click Breakpoint button to turn it off and click the Execute button  Optionally.php in the Structure box has a blue ball next to it.Breakpoint Off If breakpoint is on. | Imperial Manual for Secure Browsing 45 . This shows that the request has been sent and Charles is ready to intercept. Charles will pop up and show you the breakpoint.

In Castleville:  Wait a few moments and click your Inbox to receive your items.  Click to receive the item and it will send it along. | Imperial Manual for Secure Browsing 46 .1.

 Open IE  Navigate to Tools. the problem might be because you’re the Use Proxy setting is not ticked. Trusted Root Certification Authorities (tab)  Check that the certificate is installed. | Imperial Manual for Secure Browsing 47 . Content (tab). Internet Explorer To check the certificate in Internet Explorer. Internet Options.TROUBLESHOOTING Bot won’t start If everything is set up correctly but your bot won’t start.     Open your bot Click on the Settings tab Make sure Use proxy is ticked and make sure your OWN timezone is selected Click Save Settings and Refresh Certificate Errors Certificates must be installed in Internet Explorer and the browser you use – whether Waterfox/Firefox and/or Chrome. Certificates (button).

Advanced (gear). If it isn’t. Encryption (tab)  Click View Certificates and click on the Authorities tab. Waterfox/Firefox Check the Certificate in Waterfox/Firefox: To edit the certificate in Waterfox:  Click Tools. Import the certificate. navigate to \Program Files\Charles\Doc and import the certificate.  Scroll down to XK72 Ltd and highlight Charles Proxy SSL Proxying  Click Edit Trust and make the top and bottom options are checked | Imperial Manual for Secure Browsing 48 . Options.

If you are still having problems. click OK  Click to accept prompts and windows.weebly. Advanced (gear). Options.  Scroll down to XK72 Ltd and highlight Charles Proxy SSL Proxying  Click Delete or Distrust and OK  Follow the prompts to delete.Fancy Gaming Simplifier Extension for Chrome or Firefox. To reinstall the certificate:  Click Import  Navigate to \Program Files\Charles\Doc  Highlight the certificate. 2. Check your UIDs are correct.html | Imperial Manual for Secure Browsing 49 . Follow the directions in the web site. Are your gift requests being sent? Unlock your Castleville Inbox Solution Has your Castle Mailbox locked up? Is it due to sending bad code in Charles or some other reason? Here is SIMPLE FIX . Rewrite Troubleshooting Checklist – Common Problems Having trouble with Rewrite in Charles? Check the following things and there’s a very good chance you’ll find the problem: 1. 3. Encryption (tab)  Click View Certificates and click on the Authorities tab. To delete the certificate in Waterfox:  Click Tools. you can try deleting and reinstalling the certificate. they should always be BETWEEN two sets of %22 and have no spaces. Check that the problem isn’t within Castleville. http://fgfz.com/fgs. Make sure you have no clashing rules.

 Enable Castleville. | Imperial Manual for Secure Browsing 50 .Once installed:  Click on the FGS up at the top of your browser and hit open gift list. just be in FB on account you are trying to unlock. Note .you do not have to have Castle running. then Click on Gifts  Select Clear Everything or Select and Clear the ones you think may be causing your issue.  Go back to your game. Typically it will be some special item you either tried to send to yourself or someone else did.