Skip to content

Commit

Permalink
Upgrade to Crystal 0.35.1 including net_sample.cr update
Browse files Browse the repository at this point in the history
  • Loading branch information
PercussiveElbow committed Sep 22, 2020
1 parent 0832586 commit a0697de
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 522 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM crystallang/crystal
RUN useradd -ms /bin/bash notroot
COPY ./ /breakout
WORKDIR /breakout
RUN shards install
RUN chown -R notroot:notroot /breakout
USER notroot
RUN crystal build -Dpreview_mt --error-trace src/docker-escape.cr
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Additionally, if the tool will conduct a quick port scan of available interfaces
Use a prebuilt binary from [Releases]("https://github.com/PercussiveElbow/docker-escape-tool/releases") or compile yourself with Crystal 0.31.1 or higher:

```
shards install
crystal build -Dpreview_mt src/docker-escape.cr
```

Expand All @@ -52,4 +53,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 6 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: docker-escape
version: 0.1.0
version: 0.1.1

authors:
- your-name-here <your-email-here>
Expand All @@ -8,6 +8,10 @@ targets:
docker-escape:
main: src/docker-escape.cr

crystal: 0.31.1
dependencies:
net_sample:
github: arcage/net_sample.cr

crystal: 0.35.1

license: MIT
2 changes: 1 addition & 1 deletion src/checks/network_socket/network_socket_check.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "uri"
require "http/client"
require "../../utils/network/net_sample"
#require "../../utils/network/net_sample"
require "../../utils/network/port_scan"
require "socket"

Expand Down
1 change: 1 addition & 0 deletions src/docker-escape.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "./utils/*"
require "./checks/*"
require "./breakouts/*"
require "net_sample"

def main
logo()
Expand Down
93 changes: 0 additions & 93 deletions src/utils/network/libc_net/nic.cr

This file was deleted.

73 changes: 0 additions & 73 deletions src/utils/network/libc_net/nic/bsd.cr

This file was deleted.

62 changes: 0 additions & 62 deletions src/utils/network/libc_net/nic/linux.cr

This file was deleted.

35 changes: 0 additions & 35 deletions src/utils/network/libc_net/ping.cr

This file was deleted.

33 changes: 0 additions & 33 deletions src/utils/network/libc_net/ping/client.cr

This file was deleted.

Loading

0 comments on commit a0697de

Please sign in to comment.