Welcome to hacking a rise i am the laughing man and today im going to show you how to turn your android in to webserver with out root using termux and golag

<h1>what is Termux </h1>

Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically – additional packages are available using the APT package manager.

DOWNLOAD HERE

<h2>What is Go lang </h2>

Go, also known as golang, is a computer programming language whose development began in 2007 at Google, and it was introduced to the public in 2009. … As a result, Go eschews many features of other modern languages, such as method and operator overloading, pointer arithmetic, and type inheritance.

<h1>how to install requirements </h2>

installing git

Frist we need to istall git this will let us pull form git in other words download tools off github you can do by typing

<code>pkg install git </code>

Turn your android in to web server 1

Next we need to install golag

Installing go lang

Now we have git installes we can now start installing go lang we can do this by typing

Pkg install golang

Turn your android in to web server 2

next we need to export GOPATH to /data/data/com.termux/files/home/go we can do this by typing

export GOPATH=/data/data/com.termux/files/home/go

Turn your android in to web server 3

Next we need to get a file from git so we will use the go command for git so in terminal type

<code>go get -u -v github.com/kataras/iris </code>

Turn your android in to web server 4

Now we have all that done lets go to the file so we can run it so in terminal type

<code>cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world </code>

Turn your android in to web server 5

Now for the fun part we run the file so to run a go file in any terminal type

<code>go run main.go </code>

Turn your android in to web server 6
Turn your android in to web server 7

Now we let that run and install when it is done we go to are web browser and type http://localhost:8080

Turn your android in to web server 8

Leave a Reply