Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kiki354705dthe only thing scarier than a talented autistic person is a manic talented autistic person with a lot of free time
-
retoor16575d@kiki that must be you, i'm not autistic, got tested! :) But it came close, i have good memory for phone numbers / license plates. But c'mon, I had to do that for my job for long so.. Not a very good measurement.
A friend pointed me at this great site: https://www.random.org/
I analyzed some outputs of that side against chatgpt if it can find a pattern and stuff. I have a new hobby! -
retoor16575d@lungdart will show in a few days. It's load intercepting proxy loadbalencer. It can is written in C and fully configurable with python. Python decides at start from incoming request what the upstream is. For example: if it sees a header starting with SSH, it forwards to SSH. If it's HTTP, it forwards to HTTP Server, if it is HTTPS (so weird data), it forwards to HTTPS. You can also do site redirecting here or even use the whole application as reverse proxy for different host names like NGINX / HA PROXY does. Mine supports every server. Also for interecepting, but only not for HTTP intercepting yet. It can do intercept other stuff. It depends on protocol.
Btw, my funny app above: https://molodetz.nl/retoor/... -
retoor16575d@lungdart the possibilities and performance of this server is amazing. I can now even add AI to the load balancer. World's first AI load balancer? :P I can easy write logs to database and stuff with the python functionality. I will make python everywhere hookable but not used by default because python slows down ofcourse. But python only loads one time! So, if you set a global variable in the route() function, it stays there for the other connections too. So, this way you could make stats, count connections or whatever. It's really extending the application. Not just some stuppid that get's important and ran every time. it's in memory.
As you can see, you could even do filtering on methods like GET. Or some API key. Sky's the limit. YOu can limit header lengths. You can deny user agents. And that all in a super early stage, before it's gonna bother your heavy application!
Oh, yh, the -1 is, is because it returns an fd (number). -1 means boeeehhh. It does not return u. -
@retoor very cool.
Not an expert in layer 7, but I believe the first part of the tls hand shake for https is in the clear, may be able to set up a state table for load balancing based on that. It will break with QUICK of course, and likely be hard to differentiate http over tls with other protocols over tls. -
retoor16575d@lungdart I don't know if there's something to interpret about HTTPS. Normally, it just redirects HTTPS always to the same server, and that server will handle the different host names. This application can run two times:
- before all servers to ensure safe connection and kicking attacks. It's needed to be up front so it's the first one receiving the SSH connections. I want to run SSH on port 443 and HTTPS on 443 in sense of security. This way it looks like my server doesn't have SSH. It's a fun gimmick. They're knocking on any port with scanners atm. They leave HTTP's quite alone in exception scanning for certain urls. I could connect a sshfs cloud drive over port 443 to my laptop for example. port 443 is everywhere allowed :)
- after the web server to do interception of web content for a web application or other HTTP redirection. In this case, the HTTPS is already decoded. -
@retoor nmap can differentiate ssh servers from web servers using the same port with ease. I don't think port making has worked in a long time
-
@retoor nmap can differentiate ssh servers from web servers using the same port with ease. I don't think port making has worked in a long time
-
retoor16574d@D-4got10-01 nice, now you have all my personal info. It's in there as kinda joke. Not that random. I added a retoor bot to my site btw. It's a bit annoying on phone but on desktop it's nice. It's quite plain now, it's demanded to flex and use emoticons. I am training a model on it. 5000 retoor messages.
Related Rants
Needed an application that generates data very fast for a networking application i'm writing but I did notice that /dev/urandom and /dev/random are not very consistent in speed.
Still, i needed something fairly random with more consistent speed. Now, I made an application that caches 1000 randoms upfront and use them for calculation. Now I have my own randomization algorithm backed by the uniqueness of the original rand(). For fun I added data in the set like some phone numbers. I can watch ages to the data to find smth in common or interesting combinations of the data.
I did verify with GPT is the algorithm is unique and it's fail. It generated a complete ML script for itself to check it. Very awesome.
You use urandom, i use retoordom. We are not the same.
random
algorithm
emoji
conistent
networking
retoordom
speed
randomization
rand