169 похожих чатов

Hi guys, do you know a package that can : -

start a web-server
- you specify actions and requests and it will follow it ?

NO CODE !

For example in a configuration file, you have :

GET /name
param
echo 'request from %paran%'

POST /fullname
param1, param2
mkdir param1 param2

The first line is the request
The second parameters
The third is the command line it will execute 🤔

Then run : command --port 30 --conf myconfig.txt

10 ответов

6 просмотров

Probably doesn't exist since literally giving out remote code execution isn't the greatest idea lol

d4rk3r-. Автор вопроса
Sean ✨
Probably doesn't exist since literally giving out ...

mhh... am facing a situation where i need that lol !

d4rk3r .
mhh... am facing a situation where i need that lol...

Everybody is free of commiting suicide. you can run a php server, and then https://www.php.net/manual/en/function.exec.php run as root, so the attacker have it easier!

d4rk3r-. Автор вопроса

https://github.com/Sanix-Darker/dycow i made something... and it works pretty fine following my requirements.

d4rk3r .
mhh... am facing a situation where i need that lol...

To run remote commands it’s standard to use SSH There’s also apps for your phone. For strong security, use ssh keys 🔑

d4rk3r-. Автор вопроса
Lalo
To run remote commands it’s standard to use SSH ...

i was not searching to run remote ssh commands but able to create a quick rest api service that can receive some parameters, do a specific stuff and respond 🤔

d4rk3r .
i was not searching to run remote ssh commands but...

Oh I see. A quick laravel app with background jobs would do the trick. Autentification included. There’s docker images ready to deploy. The hole process is 20min

d4rk3r-. Автор вопроса
Lalo
Oh I see. A quick laravel app with background job...

interesting thanks ! The thing is i was making this tool for my raspberry pi where i wanted to start a tiny web-server, for laravel it was too much to install, same for docker that is realy huge... With dycow you have only 3 steps : - Create a configuration file for example : - GET /test?name cmd: echo 'Custom command !!!' res: Hello #name# ! And in the CLI, hit : pip install dycow dw 3000 conf_file It will run on port 3000 and following rules in the conf_file

Похожие вопросы

Обсуждают сегодня

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
Всем привет! Нужен совет от опытных. Переношу свой проект с Делфи 10.2 Токио на Лазарус 3.2 установленный через инсталлятор fpcupdeluxe-x86_64-win64. При импортировании проект...
Дмитрий Завгородний
7
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
Всем привет! procedure TForm1.FormCreate(Sender: TObject); type TStartEnd = record S: Byte; E: Byte; end; var a, b: TStartEnd; begin {1} a.S := 1; {2} a.E := 2; ...
Руслан Михайлович
10
Всем привет!) я тут новенький и пытаюсь освоить evolution методом тыка. У меня при переходе между папками файлов выскакивают вот такие уведомления Можете подсказать как их от...
Диман Samoed
10
Какого хера? /Sources/App/Modules/User/Models/UserLinkApple.swift:21:20: warning: stored property '_id' of 'Sendable'-conforming class 'UserLinkApple' is mutable @ID(...
Alexander Sherbakov
14
Карта сайта