Skip to content

Commit ff35069

Browse files
committed
Fix code block styles on snapshot fuzzing section
1 parent e71b48c commit ff35069

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/docs/fuzzing/5-snapshot.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ To run fuzzing, navigate to the `wtf\targets` directory and create a new `FuzzHe
756756
### Starting a server node
757757
758758
The server node keeps track of all the fuzzer states—the code coverage and corpus. It also generates and distributes the test cases to clients. Use the following command to run the server node:
759-
```sh
760-
C:\Users\User\wtf\targets\FuzzHelloWorld> ..\..\bin\wtf.exe master --name FuzzHelloWorld --max_len=4096`
759+
```
760+
C:\Users\User\wtf\targets\FuzzHelloWorld> ..\..\bin\wtf.exe master --name FuzzHelloWorld --max_len=4096
761761
```
762762
763763
* `name` is the module name specified in the harness.
@@ -766,14 +766,14 @@ C:\Users\User\wtf\targets\FuzzHelloWorld> ..\..\bin\wtf.exe master --name FuzzHe
766766
### Running fuzzing nodes
767767
768768
In another command window, use this command to run the fuzzing node. By default, the `bochscpu` [back end execution](https://github.com/0vercl0k/wtf/?tab=readme-ov-file#execution-backends) will be used.
769-
```sh
770-
C:\Users\User\wtf\targets\FuzzHelloWorld> ..\..\bin\wtf.exe fuzz --name FuzzHelloWorld`
769+
```
770+
C:\Users\User\wtf\targets\FuzzHelloWorld> ..\..\bin\wtf.exe fuzz --name FuzzHelloWorld
771771
```
772772
773773
After the server node has been running for a couple of seconds, you should see the following in the master window:
774-
```sh
775-
Saving crash in C:\Users\User\wtf\targets\FuzzHelloWorld\crashes\crash-0x3b-0xc0000005-0xfffff80314a01233-0xfffff90641f9ec90-0x0-0x0`
776-
#7346 cov: 4667 (+4667) corp: 3 (114.0b) exec/s: 7.3/k (1 nodes) lastcov: 1.0s crash: 997 timeout: 0 cr3: 0 uptime: 5.0s`
774+
```
775+
Saving crash in C:\Users\User\wtf\targets\FuzzHelloWorld\crashes\crash-0x3b-0xc0000005-0xfffff80314a01233-0xfffff90641f9ec90-0x0-0x0
776+
#7346 cov: 4667 (+4667) corp: 3 (114.0b) exec/s: 7.3/k (1 nodes) lastcov: 1.0s crash: 997 timeout: 0 cr3: 0 uptime: 5.0s
777777
```
778778
779779
* `cov`: This represents the current code coverage achieved by the fuzzer. It’s typically measured in basic blocks, edges, or other executed code units. A higher number indicates that more of the target’s code has been explored.
@@ -785,7 +785,7 @@ Saving crash in C:\Users\User\wtf\targets\FuzzHelloWorld\crashes\crash-0x3b-0xc0
785785
You should iteratively add fuzzing nodes based on the hardware resources available, target complexity, and fuzzing strategy.
786786
787787
And this is what the crashing input might look like:
788-
```sh
788+
```
789789
C:\Users\User\wtf\targets\FuzzHelloWorld> type crashes\crash-0x3b-0xc0000005-0xfffff80314a01233-0xfffff90641f9ec90-0x0-0x0
790790
DEADBEEFf
791791
```

0 commit comments

Comments
 (0)