Skip to content

Commit

Permalink
Add nim in executable documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricelambert authored Feb 12, 2023
1 parent 7e0bf57 commit b8eb1aa
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Executable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Cross-platform executables to test your antivirus software with multiple Eicar f
2) Rust
3) F#
4) C
5) Nim

## Go

Expand Down Expand Up @@ -163,4 +164,21 @@ fn main() -> std::io::Result<()> {

Ok(())
}
```
```

## Nim

### Compile

```bash
nim c -r --stackTrace:off --lineTrace:off --lineDir:off EicarSpam.nim
```

### Sources

```nim
var part1: string = "X5O!P%@AP[4\\PZX54(P^)7CC)7}$"
part1.add("EICAR-STANDARD-ANTIVIRUS-TEST-FILE")
for i in 1 .. 300:
writeFile("eicar" & $i & ".txt", part1 & "!$H+H*")
```

0 comments on commit b8eb1aa

Please sign in to comment.