Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Django CNC?

Just wondering if anyone has experimented with this, instead of using PHP for a CNC, I've started to look into it recently. If someone has, how is the stability compared to PHP?
I've used both flask and django and they are easier to write and more stable in my opinion.
I think the main reason that php is used for a lot of cnc servers is because it's normally installed by default. So it makes it a bit more portable as opposed to being technically superior.

Hey there,
If I have helped you or if you just enjoy my posts, please consider donating bitcoin to me 1DpL2kcxuidEsjt2MMN2AYufcVoXbi3v2X

[Image: FtwuQgr.gif]
(Aug 18, 2020 09:10 AM)incognito04 Wrote:  I've used both flask and Django and they are easier to write and more stable in my opinion.

I've started using Django just not sure how well it would handle a large number of connections.

(Aug 19, 2020 02:19 PM)tux1 Wrote:  I think the main reason that php is used for a lot of cnc servers is because it's normally installed by default. So it makes it a bit more portable as opposed to being technically superior.

That's true, I mean it's not really hard to install Python onto a server, so I'm mainly just looking for what would be more stable in the long run.

(Aug 19, 2020 06:56 PM)tsuki Wrote:  Django is fine. I'd recommend Flask though because it's simpler. Definitely either over PHP any day, though.

I prefer Django over Flask, I am more experienced in it. I'm definitely going to have to do more research into the stability, cos most of the people I've asked have said use PHP over Python.
Stability depends more on the underlying webserver and not on the framework.
I prefer flask.
(Aug 20, 2020 03:50 AM)omboml Wrote:  Stability depends more on the underlying webserver and not on the framework.
I prefer flask.

Thanks for the response, I've only heard people say that so I'm just going by word of mouth, I've never really had an issue using PHP as the CNC.
flask / django are decent options. you could also use the built in python http server (python3 http.server). Basic http C2 dev is fairly simple with python and there aren't many drawbacks to using python as a c2 server.
(Aug 19, 2020 02:19 PM)tux1 Wrote:  I think the main reason that php is used for a lot of cnc servers is because it's normally installed by default. So it makes it a bit more portable as opposed to being technically superior.

so is python, almost any Linux server will have both python and PHP installed.

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by NavTechSep 13, 2022 07:23 AM 9 291 Sep 13, 2022 07:23 AM
Last Post: еlixir
[Python] by SмℯґƒDec 10, 2020 12:52 PM 6 218 Dec 10, 2020 12:52 PM
Last Post: Sмℯґƒ
[Python] by _danielDec 21, 2019 08:07 AM 6 295 Dec 21, 2019 08:07 AM
Last Post: anonymousfriend