Column | chapter nine algorithm

Url | www.jiuzhang.com

Hello, Avril Potti! It’s 1024 again, the annual Programmer’s Day!

Today, programmers hide this power with every line of code they type. Such as:

One line of code can get the boss to fire you!

Let’s see how these tricks are played!

1. How to use one line of code

Ask your boss to fire you

@songqing you really enough mudslide, the boss should want to kill your heart

@Guo Xiaotian duan still needs to improve

@zhu tong die die die, too straightforward

2. How can a line of code not be expelled

So let’s write another N lines


Some year Mid-Autumn Festival, Ali internal to carry out a Mid-Autumn festival gun moon cake activity, a programmer wanted to kill a box of moon cakes in seconds, but found that just started manual operation, a little interface was robbed of the moon cake.

He noticed that someone was using an app to brush mooncakes, so he told a colleague, “I have to write a script, too, or I won’t get them.” So he wrote a script that said something like: timed automatic snatching, if the button turns to second kill crazy point (similar to 12306 snatching tickets plug-in).

However, he thought ali Mid-Autumn festival grab moon cake page and the general second kill page, grab immediately jumped to the payment page. 16:00 on the day of automatic second kill, the results of a look at the dumbstruck, found that the second kill page can always rob, and do not jump, a succession of more than 10 have not paid, they hurriedly call the administration to return.

Later, I was interviewed at 16:30, terminated the contract at 17:30, and left at 18:00.

3. What other cases of death

Can you see the power of the code?

A Tencent security engineer (Zheng Dutao) was curious about whether there was a bug in the hotel’s WiFi server when he checked into a Flying Dragon Hotel in Singapore.

After successfully accessing the hotel’s WiFi gateway, he spent the next three days executing scripts, cracking files and passwords, and finally successfully logging into the hotel’s WiFi server database, which he then published in a blog post titled “Exploit Singapore Hotels”. The post came to the attention of Singapore’s Cyber Security Agency (CSA), which arrested him.

Zheng dutao, a lawyer, said the act did not cause real damage to the hotel, although it caused increased risk, so it should not be punished severely, and requested a maximum fine of S $5,000. But in Singapore, Zheng’s actions are a criminal offence and could face up to three years in prison and a s $10,000 fine.

Welcome to follow my wechat official account: Ninechapter.



Elite programmer exchange community, regular release of interview questions, interview skills, job information, etc