File tree 5 files changed +17
-8
lines changed
5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ public class MainModule : NancyModule
5
5
{
6
6
public MainModule ( )
7
7
{
8
- Get [ "/" ] = x => View [ "index.html" ] ;
8
+ Get [ "/" ] = x => View [ "index.html" ] ;
9
9
}
10
10
}
11
11
/*public class r2warsModule : NancyModule
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ class Program
14
14
{
15
15
static void Main ( string [ ] args )
16
16
{
17
- string httpUrl = "http://127 .0.0.1 :9664" ;
18
- string websocketUrl = "ws://127 .0.0.1 :9966" ;
17
+ string httpUrl = "http://0 .0.0.0 :9664" ;
18
+ string websocketUrl = "ws://0 .0.0.0 :9966" ;
19
19
var tokenSource = new CancellationTokenSource ( ) ;
20
20
CancellationToken ct = tokenSource . Token ;
21
21
if ( args . Length > 0 ) {
@@ -24,7 +24,7 @@ static void Main(string[] args)
24
24
25
25
var taskA = new Task ( ( ) =>
26
26
{
27
- var nancyHost = new Nancy . Hosting . Self . NancyHost ( new Uri ( httpUrl ) , new CustomBootstrapper ( ) ) ;
27
+ var nancyHost = new Nancy . Hosting . Self . NancyHost ( new Uri ( "http://0.0.0.0:9664" ) , new CustomBootstrapper ( ) ) ;
28
28
nancyHost . Start ( ) ;
29
29
Console . WriteLine ( "Web server running at " + httpUrl ) ;
30
30
Original file line number Diff line number Diff line change 1
1
FROM mono:latest
2
2
MAINTAINER @CaptnBanana
3
3
4
- RUN apt update && apt -y install git build-essential wget
4
+ EXPOSE 9664 9966
5
+
6
+ RUN apt update && apt -y install git build-essential wget screen sudo
5
7
6
8
# Get and install r2 from maser
7
- RUN git clone https://github.com/radareorg/radare2 /opt/radare2 && /opt/radare2/sys/install.sh
9
+ RUN git clone --depth=1 https://github.com/radareorg/radare2 /opt/radare2 && export CFLAGS=-O2 && /opt/radare2/sys/install.sh
8
10
9
11
# Get and compile r2wars from master
10
- RUN git clone https://github.com/radareorg/r2wars.git /opt/r2wars
12
+ RUN git clone --depth=1 https://github.com/radareorg/r2wars.git /opt/r2wars
11
13
WORKDIR /opt/r2wars/csharp
12
14
13
15
RUN xbuild /p:Configuration=Release r2wars.csproj
14
16
15
17
WORKDIR /opt/r2wars/csharp/bin/Release
16
18
ENTRYPOINT ["mono" , "r2wars.exe" ]
19
+ # ENTRYPOINT ["bash"]
Original file line number Diff line number Diff line change
1
+ all :
2
+ docker images | grep -q ^r2wars || docker build --no-cache -t r2wars .
3
+ sh start.sh
4
+
5
+ clean :
6
+ docker rmi r2wars
Original file line number Diff line number Diff line change 3
3
# The path to the directory of this file
4
4
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
5
5
6
- sudo docker run --rm -it --net=host --name r2wars -v $DIR /warriors:/opt/r2wars/csharp/bin/Release/warriors r2wars
6
+ docker run --rm -it -p 9664:9664 -p 9966:9966 --name r2wars -v $DIR /warriors:/opt/r2wars/csharp/bin/Release/warriors r2wars
You can’t perform that action at this time.
0 commit comments