Giter Club home page Giter Club logo

lets-get-arrested's Introduction

English | 日本語 | 한국어 | Bahasa Indonesia | Español | Deutsch | français | العربية | Português Brasileiro | Italiano | Nederlands | 简体中文 | 繁體中文 | Türkçe | বাংলা | Русский | Polski | Esperanto | Svenska | Magyar | Norsk | Bahasa Malaysia | ภาษาไทย | Tiếng Việt | Česky | ئۇيغۇر | Български | Հայերեն | فارسی | Ελληνικά

Lets-get-arrested project

In Japan, a schoolgirl was caught by the police for putting a link to a website with an endless loop of alert in JavaScript like this:

while (1) {
  alert("!");
}

Related news articles:

So this is regarded as a "crime" in Japan. So let's be criminals and get arrested!

Enjoy criminal life!

How to get arrested

It's easy. Fork this project and branch it as gh-pages. It's all done. It would be more effective to share the url "https://{youraccount}.github.io/lets-get-arrested" on social media. When you share it in Twitter, use hash tag #letsgetarrested4jscode.

Not arrested?

You can surrender yourself to the police.

lets-get-arrested's People

Contributors

aximov avatar chayleaf avatar cyihsu avatar dzejkop avatar friendlyanon avatar hamukazu avatar insanehong avatar iskandartypes avatar jaamaalxyz avatar kpym avatar labrusca avatar leo1994 avatar lonelyenvoy avatar n0toose avatar nblthree avatar odditica avatar oofdere avatar orbli avatar petechu avatar rphsoftware avatar runarsf avatar sadikkuzu avatar simonri avatar tumaris avatar us avatar vgalin avatar voldedore avatar wessel avatar yambe2002 avatar yuta0801 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lets-get-arrested's Issues

How to not get arrested in Japan

One time, we were having lunch in Roppongi in a place overlooking a the street. We saw 4 extremely drunk (it was not quite noon) 20-somethings emerge from somewhere and proceed to cross the street. 2 girls and one guy made it across but the other guy loitered in the middle even as the lights changed. As taxis drove past him, he kicked at them. Soon he was pissing in the middle of the street. Meanwhile, two of his friends were rolling around on the ground on the side of the road. This went on for 10 or 15 minutes. While it was happening, a patrol car came and parked on the side of the road nearby for a minute or two and then pulled away without incident, two cops on foot stopped on the sidewalk and watched with disapproval on their faces and then left, and one motorcycle cop did a U-turn right in front of the guy but was met only with aggressive body language. Eventually the scene cleared up on its own without any arrests or citations.

As a computer science theorist, I want to thank Japanese polices

tl;dr: Japanese polices have just solved the halting problem

Background

Definition: Halting problem is: Given any Turing Machine M and an input s, decide whether M(s) halts.

In common words, halting problem is saying, given a program, and some inputs, determining whether the program exits at all.

In 1936, Alan Turing proved that there is no hope we can write a program to solve such a problem. But now in 2019, with the help of Japanese polices, we can actually solve halting problem in an elegant way.

Proof

Given any Turing Machine M and an input s, consider the following procedure:

  1. Write javascript that simulates M, since javascript is a Turing-complete language, it is easy to do so.
  2. For each statement of your code, append alert('!'); after it.
  3. Embed the code into some webpage and get a link
  4. Post the link on Japanese discussion boards and @ Japanese polices
  5. Sit at home and wait
  6. If you are arrested, we know M(s) never halts, otherwise M(s) halts

Now, if M(s) halts, then we are not posting a link with infinite alerts, so there is no ground for Japanese polices to arrest us. Otherwise M(s) never halts, then they will raid us and we will learn that M(s) must halt. Hence, Japanese polices are the oracle for the halting problem. ∎

Yay! We have tackled the impossible!

Caveat: Statute of limitations applies, and wiki says the Japanese statue of limitations is as long as 30 years. So we may need to sit at home for 30 years to wait for the result. But luckily, we can solve many problems at once.

It is really thrilling to be born at this time to witness such a breakthrough in computablility theory. I think Japanese polices should get the next Turing award for their fantastic job.

Making a T-shirt

I am thinking of designing and selling a T-shirt to spread this campaign. If there were a catchy logo, it would be more effective.

Surely i need to be arrested multiple times for this one

JS

while(1){
alert("Arrest me plz");
}

C#

while(true){
MessageBox.Show("Arrest me plz", "Illegal", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

Batch

:f
msg %USERNAME% "Arrest me plz"
goto f

Python2.7

while True:
    tkMessageBox.showinfo("Illegal", "Arrest me plz")
 

GameMaker

In Step Event 0:
Execute Code: show_message("Arrest me plz");

VBS

do
x = msgbox("Arrest me Plz",16,"Illegal")
loop

lets-get-arrested is worked as true browser exploit.

再現手順

  1. Android 版の Twitter アプリ内 WebView で開く
  2. 無限 alert を何度も閉じながら右上のメニューを開く
  3. 無限 alert を何度も閉じながら [Chrome で開く] を選択
  4. 💥 Chrome が異常終了

再現率は 100% ではなく、問題が再現する環境でも問題なく Chrome アプリで開かれることもあるようです。

再現環境

ASUS ZenFone 5
Android 8.0.0

事実整理

日本において、ある女子中学生が以下のようなアラートの無限ループを JavaScript で書いたとして警察に補導されました:

報道によれば、アラートの無限ループのJavaScriptが書かれた「URLを記述」したことによる補導ではないでしょうか。つまり、JavaScriptを書いた人は補導もなにもされていない。

In what environments does this cause a crash?

From the following article:
https://arstechnica.com/tech-policy/2019/03/japanese-police-charge-13-year-old-girl-for-infinite-javascript-popup-prank/?comments=1&post=36976525

"You can see it above, though that's not quite the same as single-handedly crashing 1,507 computer systems on one day."

In Android chrome, ubuntu firefox, ubuntu chrome. I am never stuck in the application. Never experienced any explorer crash, let alone OS crash.

It seems like modern explorers take this common exploit into account and effectively protect users against it.

How did 1507 computer systems crash?

how to get arrested in weaboo

for ( ; ; ) {
window.alert(" ∧_∧ ババババ\n( ・ω・)=つ≡つ\n(っ ≡つ=つ\n`/  )\n(ノΠU\n何回閉じても無駄ですよ~ww\nm9(^Д^)プギャー!!")
}

while(1) alert('何回閉じても無駄ですよ〜')

I would like to surrender myself to the police

But as an American, I don't know how.

Can you help us know which police department arrested the little girl? They seem to be experts in this matter and I would like to turn myself in to them over the phone

Lead maintainer still does not get arrested

Steps to reproduce

  1. Start lets-get-arrested project and share the url of GitHub Pages on Twitter
  2. News sites reported about this project

Expected result

Lead maintainer got arrested immediately.

Actual result

Lead maintainer still shows up his office everyday.

Faster access

当局からはおそらくリンクをクリックし事実確認をし逮捕状が発行されたものだと思われますので下記の様な直接的なリンクの方が現実的ではないでしょうか

<a href="javascript:(function hoge() {alert();hoge();})();">bl</a>

Feature suggestion: illegal number

If you add an illegal number, we'll all get arrested even faster. Of course this will vary (no pun intended) by jurisdiction. For those of us in the US, I believe an AACS master key will suffice. An image of Winnie the Pooh may do for China. Japan, umm, unblurred porn? Don't look at me for a PR, I haven't got any illegal numbers around here... Whistles

Why should I fork this?

The girl was arrested for "putting a link" and not writing the code. It's all about sharing. You only need one site with this alert JavaScript. Multiple persons can share one site. No need for multiple sites here.

I think you don't have the right script

The original script was: <script language="JavaScript"> for ( ; ; ) { window.alert(" ∧_∧ ババババ\n( ・ω・)=つ≡つ\n(っ ≡つ=つ\n`/  )\n(ノΠU\n何回閉じても無駄ですよ~ww\nm9(^Д^)プギャー!!\n byソル (@0_Infinity_)") } </script>

Preparation for arrest

The news article mentioning this project
https://www.data-max.co.jp/article/28329
says during an interview with the Hyogo prefecture police, they said they haven't changed their interpretation of Japan's law although many lawyers are skeptical about that. This means they assured this project is illegal. Consequently the risk of an actual arrest has increased.

Thus we should get prepared. I am thinking of raising a fund to cover attorney's fee. If there is any idea about what we should do to be prepared, discuss here.

U know what

Let's fxxking get arrested is my legal middle name.

My ideas for maintaining this project smoothly

This project became very famous, and now many issues and PRs are posted.
But I don't think everything is smoothly handled.

So my ideas are

  1. Label them
    There are many issues and PRs, contents are various: translations, typo fixes, discussions
    By labeling, it's can visually see the difference and make the content easier to identify
  2. Give write access to contributors
    In the present situation, if the owner isn't here, we can't even label it
    So give write access to contributors just like gatsbyjs
    Japanese article https://blog.hiroppy.me/entry/current-status-and-future-of-oss

Finally, note this is a personal opinion and other ideas are also welcome

デモへのリンク

実際に動作するデモへのリンクがあったほうがわかりやすいと思うのですが、READMEには見当たりませんでした。

Can I get arrested for confirm or prompt?

In this incident, the girl was caught for alert. But there are also confirm and prompt similar to alert. Can I get arrested for these?

// just like this
while (1) confirm("!");
// and this
while (1) prompt("!");

Add LICENSE

This source code should be made GPLv3 so any project with a while loop should be required to share their source code.

Get rid of unnecessary master branch

It would be cleaner if there were only one branch (the gh-pages branch) instead of two separate branches both with an index.html file.
Commands to do so:

git push origin :gh-pages                # delete the old gh-pages branch
git branch -m master gh-pages            # create a new gh-pages branch from the master branch
git push origin :master                  # delete old master branch
git push --set-upstream origin gh-pages  # push new gh-pages branch

Make a list of all forks

Can we make a list of all contributors and the forked gh-pages link, so the police could find it easier to arrest all of us lol

Which #hashtag should be used for sharing this event?

Which #hashtag should we use for sharing this event on social network?
Are there currently any Japanese or English #hashtag in use?
It would be great for us to hashtag it when we post our page on social network.
Should the README suggest we doing it?

Get arrested with <input type="color">

The following script spam the color choosing box, and unlike the alert box, it can really lock your browser (tested on Chrome/Firefox on Windows and on Chrome on Ubuntu).

<input type="color" id="elem">
<script>
  async function f() {
    while (1) {
      document.getElementById('elem').click();
      await new Promise(resolve => setTimeout(resolve, 1));
    }
  }
  f();
</script>

See example on https://output.jsbin.com/lefonuz.

Still Not Arrested

This does not guarantee arrest. What should I do I make the chance of arrest more prominent?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.