Mark code blocks as bash commands in README

This commit is contained in:
Niklas Mohrin authored and Niklas Mohrin committed 2020-08-28 14:43:50 +02:00
1 parent 309d1ad660
commit fbba9d16ca
1 file changed
+12 -12
+12 -12
View File
@@ -136,7 +136,7 @@ We strongly recommend using the `alpine` tag, as this is the latest major - stab
Simply run this command against the IP you want to target:
```
```bash
docker run -it --rm --name rustscan rustscan/rustscan:alpine <rustscan arguments here> <ip address to scan>
```
@@ -146,30 +146,30 @@ Once done, you will no longer need to re-download the image (except when RustSca
You will have to run this command every time, so we suggest aliasing it to something memorable.
```
```bash
alias rustscan='docker run -it --rm --name rustscan rustscan/rustscan:alpine'
```
Then we can:
```
```bash
rustscan 127.0.0.1 -t 500 -b 1500 -- -A
```
#### To build your own image:
Download the repo:
```
```bash
git clone https://github.com/RustScan/RustScan.git
```
Ensure you navigate to the download location of the repo:
```
```bash
cd /path/to/download/RustScan
```
Build away!
```
```bash
docker build -t <yourimagename> .
```
@@ -179,13 +179,13 @@ docker build -t <yourimagename> .
Tap the brew:
```
```bash
brew tap brandonskerritt/rustscan
```
Install it:
```
```bash
brew install rustscan
```
@@ -208,11 +208,11 @@ If you maintain a community distribution and want it listed here, leave an issue
# 🤸 Usage
```
```bash
rustscan -h
```
```
```console
Fast Port Scanner built in Rust. WARNING Do not use this program against sensitive infrastructure since the specified
server may not be able to handle this many socket connections at once. - Discord https://discord.gg/GFrQsGy - GitHub
https://github.com/RustScan/RustScan
@@ -287,7 +287,7 @@ Decreasing batch size slows down the program, so as long as it isn't too drastic
Run these 3 commands:
```
```bash
ulimit -a
ulimit -Hn
ulimit -Sn
@@ -301,7 +301,7 @@ Increasing the open file limit increases speed, but poses danger. Although, **op
To open more, set the ulimit to a higher number:
```
```bash
ulimit -n 5000
```