DEV Community

loading...

Docker で Hack

dongri profile image D ・1 min read

Facebook Hack試してみた。(Hello Worldだけ)
https://github.com/facebook/hhvm/wiki#installing-pre-built-packages-for-hhvm
自前のサーバーは汚したくないんで、Dockerでやってみた。

$ vim Dockerfile
Enter fullscreen mode Exit fullscreen mode
FROM ubuntu

RUN apt-get update
RUN apt-get install -y python-software-properties
RUN apt-get install -y wget
RUN add-apt-repository ppa:mapnik/boost
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
RUN echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
RUN apt-get update
RUN apt-get install -y hhvm
Enter fullscreen mode Exit fullscreen mode
$ docker build -t hack .
.....
$ docker images

$ docker run -i -t hack bash
root@c5b48b4e3988:/# vi helloworld.hh
Enter fullscreen mode Exit fullscreen mode
<?hh
  echo "Hello World\n";
Enter fullscreen mode Exit fullscreen mode
root@c5b48b4e3988:/# hhvm helloworld.hh
Hello World
root@c5b48b4e3988:/# 
Enter fullscreen mode Exit fullscreen mode

ハマったところ!

<?hh
  echo "Hello World\n";
?>
Enter fullscreen mode Exit fullscreen mode

HipHop Fatal error: syntax error, unexpected T_HH_ERROR, expecting $end in /hellworld.hh on line 2

?> 閉じカッコを書くと上のエラーが出る

Discussion (1)

pic
Editor guide
Collapse
marksis4455 profile image
marksis4455 • Edited

Hey, the most common way to protect your accounts is to use complex passwords up to 20 characters long, letters and numbers are recommended.But this is not always so effective, if you need, for example, to find out the information of personal correspondence from the phone of your partner, which you care about. Perhaps you have a common cause. It is best to contact a company for this, which will do it quietly and confidentially for you..

Hack phone as a good option will be justified in this case or come out in the best light.
Thanks