#networks
1 messages · Page 11 of 1
they have their own web server, but I won't be surprised if the original people working on it long left and there are some misconfigs
and to be fair, exports as large as the ones that give me errors are rare, I have 4 problematic cases in more than a million exports
of course they do
lmao
The last question is asking "Why weren't there any NDP events?" The answer is supposed to be "PCA1 already knows the MAC address of PCA2 so it doesn’t need to use Neighbor Discovery." But in my case, there is an NDP event at RTA. What's happening here?
How does UPNP work, and what are its uses?
Some articles say it allows devices to communicate in your LOCAL network, and some say it automates the port forwarding process, for which you had to set up port forwarding on your router admin panel.
Well, aren't devices already discoverable in local network? And even if they aren't why does it open ports for LOCAL network communication?
why are you capitalizing LOCAL
It allows port forwarding to be set up automatically. The alternative is to do it manually. You're right that devices on the same LAN can normally communicate already, but your PC can't automatically set up port forwarding on your router just because there is network connectivity
Why do articles say that it allows devices on local network to communicate \😕?
to emphasize on it.
my guess would be the wording is meant to be allows two devices on local networks communicate without becoming devices that are publicly accessible
it is two devices on local networks establishing a p2p connection
also -- it would help to maybe cite one of these articles, that wording could mean anything
i think you are probably confused here because uPnP does both of these things
the local part of uPnP is essentially just SSDP, iirc it builds on top of SSDP to discover local devices
but then local devices are able to negotiate port opens as well
so when you wire up a new device it will both publish "i am a device at address X.X.X.X and provide Y features", like printers or TVs or w/e
but it can also say "i require port 8080 opened on the router" and uPnP enabled routers can understand that request
it's confusing because it's such an expansive but also kind of little-known protocol (at least for the specifics)
ye, I got most of your points
Hello guys !
I am hosting a game (Palworld) server on my PC. I coded a discord bot that sends the IP adress of the PC on a discord channel (couple of Irl friends and family dw about security issues).
The bot will send the IP whenever it changes (due to connexion resets or anything), or when querried with a command. The bot works well the code is pretty straightforward.
I have a domain name and I wish I just point it to the IP adress that would work even better than copy pasting the ip every time from the bot.
The issue is: the ip changes 2-3 times a day.
I'm lazy to just go do host dns setting and point it again with the new adress so, is there a way I can do that automatically?
we ❤️ duckdns
make an account by signing in with your service of choice
https://www.duckdns.org/install.jsp and install it with one of these srcipts
installation instructions
try using the windows-gui option
I will check this thanks !
ruchanie
Hey everyone I think this is the correct channel for this. Im using a program called scapy for IPv6 packet minpulation. When ever i send a packet it gets no replys. But if i turn on wireshark it gets a reply. I thought this was the strangest thing ever. Is it that wire shark is actively lessoning to the connection and that is why there is a reply?
nevermind figured it out https://superuser.com/questions/471228/server-cannot-ping-unless-wireshark-is-capturing-packet
Hey guys, has anyone used fabric to create chain of jumphosts for networking devices? Im trying to have a core switch be a jump host, by jumping from it into an access switch. Im currenlty using the "Connection" class for connecting to the access switch, but I don't know how to do this for local network connections where the connection string is ssh host instead of ssh user@host.
conn = Connection(
'1.2.3.4',
connect_kwargs={'password': 'password'},
gateway=jump3
)
im trying to check if forwarded a port in the correct way but it shows this, does that mean the port 25565 didnt get forward?
what's the difference between LISTENING, TIME_WAITING, ESTABLISHED ?
and after i made "port forwarding" it says the ip:25565 then TIME_WAIT
LISTENING is a port on your PC that is ready to accept connections on the specific port
TIME_WAIT is the soket is a socket that is closed and the PC is waiting for confirmation from the other side on closure
ESTABLISHED is a socket connection that is active and two devices are communicating
ESTABLISHED
The socket has an established connection.
SYN_SENT
The socket is actively attempting to establish a connection.
SYN_RECV
A connection request has been received from the network.
FIN_WAIT1
The socket is closed, and the connection is shutting down.
FIN_WAIT2
Connection is closed, and the socket is waiting for a shutdown
from the remote end.
TIME_WAIT
The socket is waiting after close to handle packets still in the
network.
CLOSE The socket is not being used.
CLOSE_WAIT
The remote end has shut down, waiting for the socket to close.
LAST_ACK
The remote end has shut down, and the socket is closed. Waiting
for acknowledgement.
LISTEN The socket is listening for incoming connections. Such sockets
are not included in the output unless you specify the
--listening (-l) or --all (-a) option.
CLOSING
Both sockets are shut down but we still don't have all our data
sent.
UNKNOWN
The state of the socket is unknown.
uh makes sense
im trying to port forward so i can play on a server with my friend
and when i do (netstat -na | findstr "port" )
it shows time_wait so i guess i didnt port forward in the correct way even tho i followed a guide
where do you think i should start to fix this?
i'm not quite sure what you mean here, do you mean you've port forwarded something on your router? if so, you won't see any changes on your local PC. i would not be surprised though if you need a firewall amendment for this
trying to port forward 25565
for a Minecraft server on my PC
I followed a guide and added a new rule in my firewall with that port and did both UCT/UDP
so idk where the issue is :(
and you've added the port to your router?
I tried yeah
idk if I added it in the correct way tho but after I added it the server loaded for me when I added my public ip to Minecraft I see the server
but when my friend does it he can't see it
so you put your own public IP in? that probably doesn't test anything because you are on that network
it sounds like a firewall thing or a problem with the port forward, though it's a really niche one and quite hard to debug over discord
hmmmm yea probably either firewall or port forward since server is working fine for me but doesn't show for my friend
do you know where should I start from to debug it?
I have an idea, is there a way to check if the 25565 port got opened correctly?
see if your friend can ping the IP maybe, though that's not always reliable. you should see entries in your netstat when they attempt to connect to you, including if it gets blocked by the firewall, something like wireshark might help to debug actual packet stuff
but port forwarding is a pain and there is no great way to tell you which bit of the process to start by diagnosing
when my friend pings it it says request timed out
hmm okay -- doesn't necessarily mean loads as routers can block pings, often consumer ones do
there's not a whole lot to advise here, you can try something like https://www.yougetsignal.com/tools/open-ports/ maybe?
Port checker is a utility used to identify your external IP address and detect open ports on your connection. This tool is useful for finding out if your port forwarding is setup correctly or if your server applications are being blocked by a firewall.
so when i put my ipv4 in minecraft it's always on (makes sense cuz it's local)
when i put my public ip it doesnt work and show for me unless i port forward in the way i do in my router
only if it's a TCP port though, i am unsure what minecraft uses
yea it says closed
i did both TCP and UDP
yes but does minecraft use TCP or UDP
you can only port check TCP due to the nature of how UDP connections are "fire and forget"
okay it's TCP
so yeah if it's closed then your router is not port forwarding correctly
or you have not set the forward correctly to push it to your computer
im not sure what to not show on a public discord server but i think this is fine
yeah i'm unsure really -- if that is your desktop IP and it's not registering then next step is to check the PC
you added a windows firewall rule right?
yea i did
2 inbound rules one for UDP and one for TCP
2 outbound rules one for UDP and one for TCP
hmmm
maybe i did sumn wrong here? i dont think so tho hmmmmm
i am completely clueless then, i am only familiar with linux networking really so can't really help you isolate where this is going wrong
that port forward looks correct
it also depends entirely on whether your ISP allows port forwarding at all, the presence of it on the router does not necessarily mean anything here
a lot of ISPs will not
or will make you pay extra
yea that's what im thinking off
the ISP might be blocking it :/
you could speak to your ISP
they are dumb for the most part here ngl
customer service sucks rlly bad
yikes
then your best bet is probably getting a cheap VPS somewhere to run a minecraft server on or looking at a VPN that allows for port forwarding through the VPN IP, or something like Cloudflare Tunnels
if you have a problem they just tell you to "restart the router" 💀
cloudflare tunnels hmm sounds good
will check that, thanks appreciate you
when i removed the way i port forwarded in my router the server now says "cant connect to the server" when im using my public ip
so i guess that port forwarding was doing sumn
that sounds like a problem from the router to your PC then
are you sure they dont have a CGNAT
whenever they try to join the server now it says
connection timed out: getsockopt
i turned off the firewall in the router page and we can ping it now but cant join the server hmmm weird
hey I'm not sure which channel to ask this in, but is anyone familiar with connecting to a mysql server on an AWS RDS instance?
I keep getting a "no address associated with hostname" error
Sounds like a DNS / firewall / network issue. Where are you trying to connect from? Is there a network route and security group allowing access?
thanks for responding, but I was able to take care of it. I just needed to change the inbound rules for my rds instance's security group
Dose anyone know about the game osu?
I subscribed for an internet plan that provides speeds up to 200mbps, but when I run a speed test by Ookla, I usually get around 400mbps. What could be the reason for this?
200mbps or MBps?
I know this channel is mostly about code that talks to the network, but what do people use to simulate networks in python? LAN/WAN etc.?
Megabits
Didn't knew this https://www.reddit.com/r/HomeNetworking/s/6ocvQ7npn0
Pretty cool
Hey, I've a question about networking but it's not related with python
recently I studied network topologies and I found one of them called "Star topology" and it seemed pretty similar to the idea of the switch so is it the same thing or there is a difference between them ?
star topology is a topological idea, switched network is an actual physical hardware device
a switch is a physical implementation of a star network
the difference is that the concept of a star network also encompasses hubs
so all the topologies are logical ideas to connect devices ?
yeah, and you combine a selection of hardware devices to achieve those topologies
are you familiar with switch vs. hub?
yeah switch sends data to a specific PC while hub streams it to all the devices
yep exactly, so if you look at the start topology, you can see that both of those technically fit that description, whilst also acting slightly differently
in terms of the physical cabling layer, they are the same, but they differ at the routing layer
I thought about it and find that the bus & ring topology can be like hub-based while star can be done with switch
that's why I asked (I mean the idea not the shape of the circuit)
thank you so much btw
yeah that's another good way of thinking about it. ring networks and bus networks only work if:
a) the devices in the network are configured to forward on packets not destined for them and
b) the devices receive packets not destined for them in the first place
which as you've identified, hubs will do
that's around the time where you start mixing together topologies and having, say, a bus network running off a star network, one central hub and then chains of devices running the bus network, etc. etc.
no problem!
I am writing a connection class for server and client. I have got into a problem while closing the socket.
sock.shutdown(socket.SHUT_RDWR) # ERROR
sock.close()
my unittests failing saying
self.sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
On linux (wsl) it dont raise any error on windows it raised this error.
Also, please would you like to take a look at the code and suggest some problems
https://paste.pythondiscord.com/G54Q
can anyone help with a connection problem
need a little more info?
i get this winerror
im trying to send sum to my ip but it denies connection
my guess is the issue here is you are technically trying to close an already closed socket
ConnectionRefusedError[WinError 10061]
code samples would be good?
this sounds fairly simple though, just that the destination port is not open
oh
The call to sock.close() is made after the sock.shutdown(socket.SHUT_RDWR)
and see as per docs
Note close() releases the resource associated with a connection but does not necessarily close the connection immediately. If you want to close the connection in a timely fashion, call shutdown() before close().
Is it okay to get error while awaiting to read data from socket which suddenly closes.
async def read(sock, n, loop):
return await loop.sock_recv(sock, n)
I get this error on both client and server sides as well
Client:
ERROR - Caught error while listening data
Traceback (most recent call last):
File "...\whisper\whisper\client.py", line 52, in listen
data = await self.read(self.chunk_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\whisper\whisper\core\client\base.py", line 77, in read
return await self.connection.read(n, self.loop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\whisper\whisper\core\client\connection.py", line 82, in read
return await loop.sock_recv(self.sock, n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python\Python311\Lib\asyncio\proactor_events.py", line 701, in sock_recv
return await self._proactor.recv(sock, n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python\Python311\Lib\asyncio\windows_events.py", line 837, in _poll
value = callback(transferred, key, ov)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python\Python311\Lib\asyncio\windows_events.py", line 462, in finish_recv
return ov.getresult()
^^^^^^^^^^^^^^
ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
Server:
ERROR - Caught error while serving ('127.0.0.1', 50419)
Traceback (most recent call last):
File "...\whisper\whisper\server.py", line 87, in serve
await self.recv(conn, **request)
File "...\whisper\whisper\server.py", line 107, in recv
await self.send(**response)
File "...\whisper\whisper\server.py", line 118, in send
await super().write(conn, data)
File "...\whisper\whisper\core\server\base.py", line 54, in write
return await self.connection.write(conn.sock, data, self.loop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\whisper\whisper\core\server\connection.py", line 104, in write
return await loop.sock_sendall(sock, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python\Python311\Lib\asyncio\proactor_events.py", line 716, in sock_sendall
return await self._proactor.send(sock, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python\Python311\Lib\asyncio\windows_events.py", line 557, in send
ov.WSASend(conn.fileno(), buf, flags)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
can anyone test the server connections for me?
yo all my ports are closed why is that
need more details than that
i just did a port scan on my ip and they are all closed
do you have any port forwarding set up
nope
there we go then
i dont even know what that means sir
are you talking about your home IP?
so every device on your network shares the IP of your router, that's called NAT (network address translation)
that means that when someone tries to connect to a port on your public IP (your router), the router by default doesn't know which device on your home network to send it to
you have to configure a rule in your router (port forwarding) to say "when someone connects on port 8000 to the router, forward it to <LAN IP>"
oh
but thats weird even http and https are closed
how am i connected to the internet then
A port scan is meant to check for ports open to accept incoming traffic that is not initiated locally. You need the port open if you have a web server, but not just to browse the web
oh thanks for explaining
yeah so when you connect to say, google.com, you connect on port 443 for HTTPS
your computer picks an outbound port in the ephemeral port range
on Linux that's ports 32768 through 60999
so then the actual communication is between 192.168.0.1:42531 (or whatever ephemeral port is picked) and google.com:443
when google replies, it sends it back to your computer on that temporary port, and that port is directed back through your router firewall
NAT complicates things slightly because your PC has an outbound port and the router also has an outbound port and translates between them, but that's the basics of it
thats a really good thing to explain it ty for ur time
did u make that
hahaha no stole it from google
ty for explaining
am new to cyber so i only got like 50% of what u said but ty still
the basics is, to send data to google, you need to know the google port, and to receive data from google, google needs to know your temporary port
think about it like sending letters in the post, the recipient can only send you a letter back if you include your address
yea
that's all the source ports are, they are temporary receiving addresses that let the server send you information in reply to your packets
and they are ephemeral (essentially meaning "temporary") because they are picked randomly and recycled after a connection has finished
source ports are from 1 to 1000?
varies by operating system, source ports on windows are around 49000 to 65535
linux is 32768 through 60999 as mentioned
my server will not run at http://3.80.52.123:8000/
am I writing the IP wrong?
i'd ask you don't put IPs in channels as it leaves users prone to exposing their IP
when you say not working, do you just mean that nthing can connect? how are you running this? what platform?
I can not connect by entering the link above into a web browser
and for the latter two questions?
that's an AWS IP, are you just using an EC2 instance?
how does your router know what temporary port you're using and forwarding the data back
The router chooses what port the remote should reply on
That's what the source port field in a packet is for
it goes in the destination port field of the reply
i.e. router knows 53129 is available because it hasn't been reserved for any other purpose yet
it puts src: 53129, dst: 443 in the TCP connect and reserves that port for this connection
webserver sees this and replies with dst: 53129, src: 443
router remembers that it picked 53129 for this specific connection and knows where to route it.
interesting
It can even multiplex ports if they have different remote ports and/or remote IPs
as long as there is some specific combination of connection-identifying info that's unique to one connection, it's possible to determine how to route it.
Though that makes the routing code more complicated - some routers work this way, others don't.
Can someone explain the difference between an empty string and a local host?
hi got a question regarding to a synology nas
so it won t get on the cloud
all my sync rules are oipen so not sure what to do
Also no new change logs
Did it again the .init file ruins all (100gb file for game engine)
why do you think you need to sync the desktop.ini file?
i don t but it im trying to exclude it but it doesn t want to do that either
oh.. exclude.. i read it wrong from the start
it looks like you are excluding it, the file is unsynced. isnt that what you want?
yeah kinda but now the rest doesn t seem to be have the cloud icon so isn t synced properly?
you can try to check for the actual files instead of the icon representing the task instead.
yeah on my other devices it is synced guess it is a smal ui problem on their side ig and it is triggering my autistic brain leave it for what it is for now ig
(can test it cuz my laptop hardware is too weak) for ue5
so it should be fine? (it only won t do the desktop.ini file of the 100+gb
still seems to store it on my pc wich is weird because of that
still stuck btw
That's not a surprise, as a (web) server can only bind to the IP address of a network adapter on that machine. If your public IP belongs to another device, you need to forward the packets by network configuration. I wrote a basic guide https://docs.lextudio.com/blog/self-hosting-series-why-cannot-my-web-server-iis-be-reached-from-anywhere-else-8da0e0b252ef for Windows/IIS users, but in general applicable to other web servers/OSes.
Can my locally hosted server can listen connections from outside the local network? How can i do it in python?
Yes... Thee details depend on your network. If you have your own public IP, port forwarding from your personal router can be enough. There are also solutions like Ngrok and Cloudflare Tunnel
I probably not hinking of using any external alternatives
External alternatives?
I want to do it in python only. I might prefer the python packages.
i have made a chat app whose server is hosted by the client iteslf locally so i was looking for way to listen incming connections from outside the network
This is a problem for whoever manages their network. You're not going to change their routing and firewall settings with Python
SO whats the solution then?
To talk to whoever manages their network and ask them to make their server accessible
Thats just out of my scope.I thoguth it would be not that much difficult
The alternative is don't use a server on their network. Ask them to pay for a small VPS or something on the cloud
It seems like you are thinking at another level. Isn't there any python package for that?
Im just a student who made a chat app project
I've never heard of this until I just did a quick Google search right now, might work: https://pypi.org/project/jprq/
I looked on the github repo is archived
The code looks small I am thinking to modify that for my app!
It looks like there are loads and loads of options you could look at: https://github.com/anderspitman/awesome-tunneling
You said that you In order to listen for outer (outside local network) connections i need to have settings configured on the network then how doe theses able to work with tunneling?
In theory, a tunnel lets you get around making any network changes
Well thanks, I go an understand tunneling 👍
Hi everybody, I hope this is the correct channel for my question. I'm searching for TCP connection configuration for a server but I have to keep eme (electromagnetic emission) low but I don't have any information about that. So due to my research about the situation; using ping pong, heartbeat or tcp keepalive options increase eme but if I don't use them I cannot know the connection status right? any idea about that? I'm thinking about enabling the tcp keepalive option, then keep the values high and randomizing the transmission intervals in order to avoid predictable patterns.
I've never had to deal with this personally but I'd be focusing on Layer 1 here, so you can hopefully send whatever traffic you need. https://www.emfanalysis.com/low-emf-internet-connection/
This article outlines how to install a wired internet system that produces very little EMI. After turning off your WiFi this is the most important low-EMF step.
@crystal current Thanks for the information. We will also control the hardware setup. Besides I learned that emitting a significant amount of radio power or sending an excessive number of messages to a server can increase the likelihood of detection. So, I would like to keep the sending messages as minimal. I found about passive monitoring. I think passive monitoring to check server status will work for me, right?
https://www.baeldung.com/linux/tcp-passively-monitor-packet-loss
yeah there's various things you can do here to try tune things, I would look into:
- tcp nodelay (disable nagle's algo and send packets immediately)
- tune your window size (see TCP_WINDOW_CLAMP if on linux)
- use a proto that allows for connection multiplexing
- as you've mentioned, adjust your keepalive
- compress where possible
i will say your description of this problem does make you sound like a three letter intelligence agency, but i'm here for it
Thanks for valuable information! Disabling nagle's algo can be very useful for me but please correct me if I'm mistaken, if we disable Nagle's algo the system will send small packets immediately rather than waiting to combine them into larger packets. So, this can lead to more packets being sent over the network, which can increase network traffic that means more em right?
you are correct, I was recommending that based off:
in order to avoid predictable patterns.
it sounds like you're going to be doing quite a bit of compromise so it's just one option that gives you a little bit less predictable payloads at the expense of more frequent sending
It generated 4 threads for 3 users you were right it'd mess up system with large no of users 😅
@trail bridge
if you need one thread pr user, you need to actually do that based on your users and not in a while loop
Ohh
for user2 as shown on the screenshot i had to press the enter key for the cmd to be updated it would'y update automatically
async™️
Hey!, I am building and flet chat app using Client server method , were the client is an flet app hosted on single server where using that website only clients are going to use to chat , I am have an doubt how to identify the specific user in that website?
hello , i have a irc but dont know how to make it online can someone help?
I don't have time to help you, but if you're talking about moving it from local to online you need to host on 0.0.0.0 and an open port of your connection (on a windows vps go to the windows firewall and add a rule you have tutorials on the internet)
I hope I helped you
thanks <3
Solid channel
https://youtube.com/playlist?list=PL7yh-TELLS1FwBSNR_tH7qVbNpYHL4IQs&si=LG39YVi1wKO-UqU7
Thanks man I owe you
Sorun degil
Hey guys, trying to setup a static IP on my ubuntu server. But its causing me to lose access to the internet. What could be happenning?
Hello can anyone send me c++ server I am newbie:))
Are you subnetting it to the right subnet? Does another device already have that IP? Could you use a DHCP reservation instead?
Check Disboard dot org
not sure if this is the best place to ask this but I am having trouble reading serial
I am attempting to automate login to a particular computer component so that I can set a temporary ip
If I login through command line, I do screen /dev/ttyUSB0 115200
and then I am met with
Login:
When I try to read and print this, I just get a blank space
If I run a command such as 'help' once im already logged in, I can read just fine
Thank you. This was really useful. My gateway was outside the subnet that I was using for the rest of the subnet. Now its okay. Thank you
what's the difference between QUIC and DTLS?
I am working on a project called RIFT, which allows you to setup a repository for people to download files of the internet right from their terminal. https://openrift.github.io/
Feel free to submit a pull request or set up a repository, would be pretty cool
can someone help me with my python code?
ok
globals much?
How so, if you're talking about the video on the website that's a known issue that I will fix when I can.
Hello Everyone!
I am a Full stack developer with over 8 years of experience in the web development.
As my resume reflect, I have worked with several big and medium clients and companies and developed strong skill set.
I have extensive knowledge about React, Angular, Node, TypeScript, AWS and Unit Testing.
One notable achievement that demonstrates my capabilities was independently building a social media website from scratch, featuring real-time messaging and seamless live calling, which contributed to its growth from 0 to 20K monthly users with recurring AdSense revenue.
Should you require further insights into my technical skill set or wish to discuss how I can contribute to the continued success of your projects, please DM me.
I look forward to the opportunity to further discuss about the growth of your company.
Thanks.
No I’m talking about your website man
Gotcha!
This script capture handshake with EAPOL packets.
With this you can do a brute force without log and timeout, since it is running without request.
I'll do the brute force script soon...
Nice work. Wifi is pretty cool, I would love to learn more about it.
yo guys, since telnetlib is deprecated, what module you guys are currently using instead?
thx 😮
people still use telnet in 2024?
it's very common with embedded hardware
i.e. all the Cisco stuff I've ever used has had a telnet interface over the management port
that doesnt sound fun
it's no different to commanding a device over SSH
I am very grateful that the telnet interface exists because it means you can built out-of-band for older switches that doesn't rely on serialport 😛
for most use cases I prefer netcat over telnet tbh
the major difference is cryptography
correct -- but there are situations such as management VLANs where cryptography doesn't matter
they are similar but do different things in some situations
oh really, what does telnet have that nc doesnt?
iirc there are certain features in the telnet protocol that netcat won't interpret because it's solely looking at raw bytes
trying to find a good example / source but am on mobile rn
Telnet Commands
this shows a little bit -- basically there are some bytes that the telnet command will interpret and use that netcat won't
oh I see. some form of control flow
that can be useful with embedded devices, I think, yeah
yeah there are certain control codes used for Cisco switches to do things like disable the password being shown when you type it in
still insecure and transmitted in plaintext, but at least secure against screen peekers 😛
Does anyone know how to decode S/MIME emails and get body text from them?
Do you know how I can connect it to my mailbox and automatically retrieve & decode emails? I know how to log in using mail.login(), but I can't manage to get the mail (ciphered message) itself..
There's a thing here about getting MIME messages. I suspect you'd have to do something like that first, then decrypt. https://docs.python.org/3/library/email.examples.html
Combinate Sniff and Deauth attack, coded on python, ruinning on Linux
sorry low qualy
But how do I actually get the ciphered message, that's my issue I believe.. I can't manage to get the ciphered message from the emails.
Nevermind, managed to do it. Thank you!
hi i want to create simple websocket script to test my cpp code, i just need to open a couple of websocket and be able to send and receive (and print ) data thrue them what would be the best approach
Anyone know how i can get something like this but on laptop
I just wanna apply the conection mode on my laptop
What is it? A VPN?
Can someone explain to me NAT because I don’t understand it
It's just translating IPs between network, generally public vs private. Here's a more thorough explanation: https://www.youtube.com/watch?v=NkCx8AnzBaI
Network+ Training Course Index: https://professormesser.link/n10008
Professor Messer’s Course Notes: https://professormesser.link/008cn
Discount exam vouchers: https://professormesser.com/vouchers/
Network administrators often use Network Address Translation (NAT) to modify IP addresses as they traverse the network. In this video, you...
Thank you!
yes
You could use a free VPN like Proton, host your own with OpenVPN or Wireguard, or pay for one... it depends on exactly what you're trying to do, which you haven't explained.
I wanna try to get the conection mode from the app, somehow it managaes to bypass somestuff that i want to bypass
Like in my country , they have social packages that only work on facebook and any social media but nothing else , i wanna bypass that so i use that app
Try Proton VPN then
If the vpn still doesn't work another option is remote desktop in another country, you can get one in the cloud on aws or azure or something. Probably more expensive than a vpn though
Is your stuff for sale on the Dark Web? Find out with Dashlane: https://dashlane.com/networkchuck50 (50% off) with code NETWORKCHUCK50
🔒🌐 How to Access the Dark Web in 2023 Safely: 3 Levels of Security 🌐🔒
Ever heard of the Dark Web and wondered how to access it? The allure of the unknown is captivating, but it can also be perilous. In this vi...
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
the people that implemented the library in python most likely 🤷♂️ do you have a query?
might it be possible that the socket closes between you sending messages one by one
anyone able to help me?
duration is saved as a string instead of a float + this dos script is cringe
Hey, I'm having an issue, I'm running a simple webserver in python, and I set for it's IP (my machine) to point to custom local domain. However, I can't seem to access it. I've tried Firefox and edge, and they both just can't find it. I can ping and run the telnet command, and I can see in the server logs it's responding. I've tried flushing my DNS already.
but still both browsers can't seem to find it
the server is currently listening on port 80
!rule 5
no
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
is there any way i can change my ip without restarting the router ?
anyone able to help me run a script via multiple proxies
You can logout from your local network @lilac sail
Send it
in dms
By the way, you shouldn't just blindly run the code someone sends you, it could be malicious
Your ISP controls the public IP of your router. Restarting the gateway may not even change it. But if you want to send traffic through another public IP, you can use a VPN, Proxy, Tor, etc. (If you're talking about the private IP of some device, that's a different matter.)
Correct channel to ask a question about webscraping?
I need to get capacitors from a distributor's website so I can plug them into an auto-solving tool. Or, at least that's the plan. Currently stuck bashing my head why a request works on postman but not on python with beautifulsoup.
^postman request. Nothing too crazy, just probing the home page for now.
HEADERS = { #use human headers to dodge anti-scraping tools
"Postman-Token" : "13c9fd9e-34a5-4f05-a1ee-a33aeecf526e",
"Host" : "www.tdk.com",
"Cookie": "_abck=E..."
}
def getCapacitorPage(page=1):
try:
print("try")
url = "https://www.tdk.com/en/index.html"
test_url = "https://quotes.toscrape.com/"
cookies = dict(cookies_are='working')
#page = requests.post(url, headers=HEADERS)
page = requests.get(url, headers=HEADERS, cookies=cookies, timeout=1)
print("got page")
soup = BeautifulSoup(page.text, "html.parser")
print(soup.text)
except(TimeoutError):
print("timeout error")
return page
page = getCapacitorPage(2)```
^python code that gets stuck at the page = requests.get(url, headers=H...line.
It times out without any response from TDK.
I looked online into webscraping pitfalls but I could find nothing. Then, I stripped the postman request bare of all optional headers until it stopped working. I know Hostis a key header, but I still for the life of me can't get python to work.
All help is appreciated.
Found it I had mistakes in the headers. I needed both "" and '' for certain fields.
Also, I needed more fields to pretend being a hummie.
(I shamefully admit that gpt came in clutch with spotting the syntax mistakes.)
Hello
!warn 1139389352187793548 Offering your services as a freelancer is against the rules. And regardless of your intentions, please stop messaging in a bunch of channels and telling people to DM you. Say what you want to say in the server.
:incoming_envelope: :ok_hand: applied warning to @coarse tusk.
!warn 1139389352187793548 spam
finding an IP address from an ID (such as a user ID or another identifier within a system) is generally not possible without access to the internal systems and logs of the service or server you're referring to
how are you communicating with the server in the first place if you dont know its IP address?
in most circumstances, an IP address isn't really something you find
Because you have to be directly told it to interact with the thing at all
are you asking if someone could get your IP just from sharing a discord server?
the discord ID?
seems very sketchy yea
it's most likely a virus instead of a bot. you download it, run it, and the scammer gets your personal information (+ the money you paid for the bot)
usually sketchy bots like that are malware
I would love to network with some of you
Does someone know how to code really good ai here
What should I learn besides python for network
If you're talking about programming languages, the important ones are C and golang (and JS if you are a web dev).
However, if you wanna learn network theory I recommend a book such as Jim Kurose's computer networking: a top down approach.
Learn Linux too, as well as Operating Systems fundamentals.
this will 100% get you a job
Okay thank you
Can I learn Kali Linux
Sure, but i'd stick with fundamentals first.
Okay
golang 
can anyone tell me why internal architecture of requests is in such a way that requests.json() is a function and response.text is a class or obj?
Can someone tell the reason why I lose packets at the destination when I send a ping from a device to an external network?
I assume it's meant to indicate that response.text which is a str is readiliy available however to get the json representation, it requires parsing on the text, an expensive operation so making it a function is imparting a little information on the user behind the process
also, as every response has a text field but not every response contains JSON, then trying to parse JSON on every response is a terrible idea and should only be done when the programmer requests
Nice to see this these days im learning cisco packet tracer
Do you know any tutorials or any other source to learn about that software?
Hi I have 20 Raspberry Pi devices, and each has an application installed. Some devices are running version 1.2, while others are on version 1.6. Since database migrations are included with each version, updates must be applied sequentially without skipping versions. For example, devices on version 1.2 should update to 1.3 -> 1.4 -> 1.5 -> … -> 2.0, while those on 1.6 should update to 1.7 -> 1.8 -> … -> 2.0.
How can I manage this, or is there a separate application for it? I am considering a node-based approach where each device is updated sequentially, similar to how Windows Updates work, ensuring that no version jumps occur and that all intermediate updates are applied in sequence. How can I achieve this?
Some relevant discussions about the database issue specifically:
If you really need to do the stepwise upgrades I would ask... how do you do your upgrades today?
Hi, I have never performed incremental upgrades before. For example, initially, I had five Raspberry Pi 2GB devices on version 1.2. I used these devices first. Later, I acquired 15 more devices. Before buying these new ones, I distributed version 1.3 to some of the old devices, and I installed version 1.6 on the new ones.
However, now I need to perform incremental updates with migrations. On my test device, I upgraded to version 2.0 step by step. I want to apply incremental updates to the other devices as well, to avoid issues with migrations.
So you SSH into each Pi and manually run an installation script one version at a time? And you're installing directly on the Pi rather then in a container? In any case you might want to use something like Ansible, or if that's overkill then just write a simple Python script with Paramiko.
Okay, so I'm asking here also if anyone read this kindly reply,
I need your help to make a #hastags in "X" Popular, so that authorities are forced to take action
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
not sure anyone replied to this, is your speed / duplex set correctly between the devices?
I’m trying to setup my home pc as ssh server over WAN, I can SSH into it in LAN but not WAN, I already setup port forwarding on my ASUS router behind a ATT gateway. I’m not sure what else I need to do
Do I also need to setup another port forwarding on the ATT gateway too?
If I try to SSH over WAN it just says operation timed out
welp nevermind after a reboot of the ssh server i cant even ping the server from LAN anymore let alone connecting to it
lol
guess ill just stick to good old local
or spin up some VMs on the cloud
I was thinking of buying a router for lan parties? It's mostly for my siblings and I because the wifi is terrible. Will that work? I just want to be sure.
Oh we'll be playing on mobile devices as one of my siblings prefers it. Just want to have it up as it's very important to her
is it a router problem or isp package problem
You should diagnose why "the wifi is terrible". A free mobile wifi analyzer app would be an easy place to start and understand if the signal is weak, if there is interference on the channel from your neighbors' wifi, etc.
Hello i need hel
Help
Soo im trying to get the video streaming link from an app how do i do it it a mi camera with live feed i need yo take it out from there
@crystal current can you
@helpers
@rough igloo
Anyone??
Anyone???
@misty bane
Can u?
I'm trying to use wireshark
@honest pasture
Please don't ping random people.#❓|how-to-get-help
Thanks. I'll do that but if I want to move our lan party to like a cabin with no wifi a router will work, right? My grandpa's house doesn't have wifi because he's old-fashioned like that.
You said you'll be playing on "mobile devices"? Then you probably want wifi. I've never heard of anyone trying to connect phones or tablets to wired Ethernet and it doesn't seem reasonable to try
Looks like the packets have a path there but no path back. Check that the other pc has proper network settings like default gateway, subnet mask etc.
Hello, is it feasable to host PRAW bots through a VPN?
I've noticed that on the free ones the bots just die if I have too many running at once
One bot alone will run for weeks on its own
Two for several days
Three for hours
Etc
Is it just the VPN's bandwidth/quality and the python bot not being able to handle the disconect?
I'm not sure, but generally speaking, you should probably just write your code in such a way that it can be restarted without loss of information if it fails, and then you can just automatically restart the bots when they fail and not worry about it.
is this channel for
neural neural network
?
can someone provide me with a good docum about it
You're probably looking for https://discord.com/channels/267624335836053506/366673247892275221
okey bro thanks
I'm really not sure how to do that tbh. This is my first big python project
Any stuff on how to start?
Assume I need some sort of main launcher program
!rules 4
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
long story short, I had to rewrite their wrapper from urrlib to urllib3 and use it to access socket (could be done differently) and set TCP keepalive options on
hello guys is there like chart about check ips to block before accepting vs accepting than checking ip to block using sockets, i dont know if we go above a certain rate one will be better or the opposite
i hv been googling to find cisco IOS
havent found any yet
anyone know where to find ?
its for this project
i wan IOSes for GNS3
i alr have cisco acc though
Hello everyone,
I'm seeking assistance with a network detection issue in Python. Specifically, I'm trying to determine if a logged-in user is accessing the system through a VPN or directly over the internet, using just Python and without relying on any external packages.
If anyone has experience with this or can suggest an approach, your help would be greatly appreciated!
Thanks,
We don't do magic tricks here. You can check if an IP is a known VPN or not, but you'll need to call an API like this does: https://github.com/Mo61n/VPN-Detector-Python
yep and I am not here for magic tricks as well It is just a simple question by the way thanks for yours time \
anyone here is familiar with GNS3?
i try to get images for router as long its isnt Cisco's images
switching and routing protocols
ansible
subnetting
understand layer 2,3 and 4 of OSI model layaer
Naming their pipeline Kafka is not a good sign XP
?
Im kinda lost
Which is the correct channel for Machine Learning stuff?
Dumb question, are the standard security protocols from out-of-the-box routers and modems like WPA3 actually secure even though they are mainstream and have been out for ever?
A quick web search will show you vulnerabilities in WPA3. There could also be other vulnerabilities with any given router that have nothing to do with WPA3 per se
hey i got a question on how i can tackle my problem im trying to make a multiplayer module that can send data from user to user but so far im having the problem of only being able to send data locally between programs but i wanna know how i can get it from device to device more without the need of the user enabling a port to be forwarded etc
Websockets would be one way,.or webhooks if it's just in one direction
Are websockets different from sockets? I've heard on this server that HTTP is abstraction over sockets and websockets is abstraction over HTTP
But then I tried googling this stuff and got really confused (maybe my google skills just need work), I couldn't find any resource describing the difference between websockets and sockets and when you would use each
https://datatracker.ietf.org/doc/html/rfc6455.html
from my understanding, websockets is a protocol just like HTTP, and both of them normally rely on communicating over TCP sockets, making them "TCP-based" protocols (besides HTTP/3 which uses QUIC, a protocol based on UDP sockets)
see also their introduction sections, 1.1, 1.5, and 1.7:
The WebSocket Protocol is designed to supersede existing bidirectional communication technologies that use HTTP as a transport layer to benefit from existing infrastructure (proxies, filtering, authentication). Such technologies were implemented as trade-offs between efficiency and reliability because HTTP was not initially meant to be used for bidirectional communication (see [RFC6202] for further discussion).
...
Basically [websockets are] intended to be as close to just exposing raw TCP to script as possible given the constraints of the Web. It's also designed in such a way that its servers can share a port with HTTP servers, by having its handshake be a valid HTTP Upgrade request.
...
The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request.
Oh, thank you so much!
one thing to note, a TCP socket is stream based whereas a websocket is message based (something to consider if using normal sockets)
Sockets are an API for several basic network protocols
Most commonly TCP and UDP
They're basically the most primitive part of the network stack you'll ever interact with, unless you're doing something weird or writing the netstack for a kernel. You use them to do things like implement HTTP servers from scratch.
It's not really correct IMO to say that HTTP is an abstraction over sockets
HTTP is a protocol which is built on TCP
It's not really an abstraction over that either
It is made from TCP but I don't think that's really the same thing.
I see, thank you!
Yeah, I think the person said "built on top of" and the "abstraction" part is my own misunderstanding
so TCP basically exists for the purpose of allowing two applications to transfer binary data to eachother in a file-like way
one side sends "some data", that data becomes available for the other side to read
this is extremely primitive. It exists so that other, more structured things can be made out of it - these things actually depend on the shape of the data, and HTTP is one of these.

HTTP gives structure to a binary data stream
An HTTP request has a clear format and size
It always starts with a request line, and headers. These are delimited using special byte sequences. And one of the headers is used to delimit the rest of the request.
So given a binary data stream which contains any number of requests, you can always tell where each one starts and stops, as long as you're following the rules.
Something that's important to note is that there is no direct mapping between "number of HTTP requests" and "number of TCP segments"
And delimit means that this header tells you how long the HTTP request is? (that is, how many bytes it contains)
yeah. Content-Length is the length of the requsts body
The two protocols operate independently. One HTTP request could span multiple TCP segments. Or one TCP segment could contain multiple HTTP requests.
Check out the TCP IP Guide for more on this topic, it's free to read online
I will, thank you!
Oh, it has a whole section on "Networking fundamentals", nice. Seems like exactly what I need
The only thing I'm worried about is it's old, seems to be written in 2005 but I assume the fundamentals that I will learn as a beginner haven't really changed
most of the protocols in question predate 2005
It is slightly old but most of it still applies
I see, thank you!
why can't you just connect your wifi to your pc normally like i would on a phone
hey guys anyone knows how i can host my flask app on my local machine while still accessible on the internet by other users? I looked online and couldnt find a specific solution
@rugged fern you'll probably have to setup port forwarding, see: #networks message
hey i sent you a dm
could we keep it here?
sure, so i looked into it and first i had to reserve the ip address for my pc so that it doesnt change in the future
I set the protocol to both cuz idk if it should be tcp or udp
a static private ip is a good idea but not the biggest issue
that looks good
assuming you're ona standard consumer plan with your ISP, your public IP address is liable to change every so often which makes it very difficult for clients to connect to your machine, you can solve this either by buying a static ip from your ISP (if they offer them) or configuring DDNS
ohh
first though, is the port forwarding working?
I havent tested it yet, should i just replace localhost with my public ip?
yeah that should do it
usually it's a router setting which appears to be this. if this rule was saved correctly it should™️ work
make sure to include the port in the url
I did
should i set a DMZ IP address
well its actually not even working on my own pc
wait, it might have been because i was using the wrong ip address
Heheh, that's important
If port forwarding ends up being troublesome or impossible, the alternative is to use a tunnel. Cloudflare is nice and easy but you have to register a domain name with them to use it. There are more open alternatives like Ngrok but I've never used them personally
Your nextjs server is running on the EC2 and responding normally if you curl it directly on there?
I forgot that we can't call api over localhost on my computer 😄
I fogot to delete the question
Easily most common mistake I've seen from cloud beginners 😉
Anyone know how fix ssl error 1000 on a windows 2012 r2 server when trying to run a discord bot ?
I would like to profile network usage and build something like a flame graph for code paths that emit or recieve on the network.
Anyone know how to do that without too much trouble?
@crystal current How does pyflame profile the network? AFAIK it's a sampling stack profiler, not a network or memory profiler.
The issue with network profiling seems to be that you need to setup some kind proxy, socket, or container, and count the packets across that boundary... while also attributing packets to the program's stack samples
Hey, how can i use Flask to initiate a DHCP Connection? is it possible to do it?
DHCP is connectionless, there's no such thing
I can't really tell from this description what you're trying to do
If you just want to do DHCP things, you can use a library for it. Doesn't really have anything to do with flask, but there's no reason you couldn't call a routine dealing with DHCP from a flask endpoint handler
Nope, I want to integrate it with flask
integrate how?
wait, lemme show
I mean no matter what you're doing it's basically a matter of gluing the two different functionalities together, using the appropriate libraries or software for each.
@hasty quest
Nothing complicated, i just want something like this -
when i click on the "Connect all devices" button, it should show me a list of devices connected via DHCP to my laptop, and my router ats like DHCP server. That should be it
Reading the TCP/IP guide, turns out this networking stuff is really interesting
Nvm, I dropped this, its not necessary now @hasty quest
Does anyone know why I can connect to a websocket with cloudfare via an online websocket connnection website but not using the websockets library in Python and how would I fix it?
going to need some more than that
code samples and error messages would be a good start
- You do need to find a TCP/IP book and correct the misunderstanding of DHCP. There is never "a list of devices connected via DHCP to" either your laptop, nor the the router even if it works as DHCP server, because like others pointed out DHCP is over UDP and connectionless. 2) Your other wish to collect which devices talked to the DHCP and acquired IP addresses is only possible if your router opens up that via some protocol. This is vendor/device specific. Some go through SNMP, some through other protocols, and others might even not have such an interface for you to integrate with.
You will have to flip a few settings and see whether things start to work. Some WebSocket servers do not support compression or other features, but the Python library you use might enable such features by default and then fail to create connections.
Ah okay, thanks
we wont know until you ask your question 😄
dont ask to ask, what's the problem?
i'm using proxies for web scraping and it's slowly on pc cuz low internet usage and laptop fast cuz high internet usage how can i make high internet usage
pc
Huh can you re explain
Well this is a loaded question for sure.
Are you connected to an ethernet cable? How much bandwidth does your isp allocate to you? Is your pc old, is the network chip updated? How far away are you from the router or hub if not connected via ethernet?
Many more questions i could add to that. If you want people to help you, be specific because most people won't take time out of their day diagnosing a black box issue.
I did a self installation of a modem. I plugged the coaxial cable into the coaxial outlet as well as the power cord to the power outlet for the modem. The green light keep flashing. Could it be that I don’t have a router yet and I haven’t plugged the Ethernet cord into anything?
Or the green light shouldn’t be flashing regardless?
We don't know your modem and we don't know your ISP.
Sagemcom F@st and Cogeco
Any ideas?
Plug in a device and if it still doesn't work, ask them?
It's pretty normal for you to need to contact your ISP when installing a new modem. They register the MAC or whatever they do manually. Plus you need to check if they support your device, right DOCSIS version and all that
Hmm im using flask and websockets, firewall disabled so what is the reason if server is running?
from flask import Flask
from flask_socketio import SocketIO
import socketio
app = Flask(__name__)
socket = SocketIO(app)
sio = socketio.Client()
Server is using socket, client sio
Error
Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
SS from server machine
SS from client machine
Looks like server is only listening on 127.0.0.1 - you’re connecting to a different IP so even if it’s the right machine, it won’t connect. Try having the server listen on 0.0.0.0
I've been asked to decrypt tls packets recv by sockets, now I am in bad headache🤣
only thing I have is an useless pem certificate
Thanks it was it!
In sockets you have two clients on two seperate namespaces “x” and “y” how do you connect x to y without the interference of the server as a proxy. Example, transferring audio data, should transfer from y to x on x’s request to the server, y starts transport and the data is directly given to x without server interaction (to not proxy the data, it causes overload in high volume)
Hi everyone! I've worked lately on a game with sockets. Today, I found this article about basics of thread locking that was helpful for me cause I wasn't sure what thread locking was. Maybe there's someone around with some questions about it so I just want to share my findings.
https://www.pythontutorial.net/python-concurrency/python-threading-lock/
In this tutorial, you'll learn about the race conditions and how to use the Python threading Lock object to prevent them.
seems like you're talking about establishing p2p?
Thanks
Quick question, is there a way to close a connection uncleanly (mimic network loss) using asyncio ?
likely for #async-and-concurrency
hello
guys can anybody tell me what does this code do??
import requests
from itertools import product
def brute_force_directories(url, wordlist):
for word in wordlist:
response = requests.get(f"{url}/{word}")
if response.status_code == 200:
print(f"Found: {url}/{word}")
basically i know shit about cyber security and I have to make a Comprehensive Web Application Fuzzer.
so I'm taking chat gpt help can anybody help?
Ask it to explain the code for you line by line and it will
But essentially that function will check for a URL based on each word in the word list and let you know which, if any, of those URLs exist
actually the thing is i have to submit the presentation tmrw, and ppt will decide
is making a simple web fuzzer tough?
You already did
is this enough?
If you got can you help me more?
I know nothing about your assignment and its requirements.
If you search the web for Python web fuzzers, you'll see endless examples to look at.
Networking goates
Anyone ever use win server 2019?....mine i can ping from client to the server but cant join the domain...and the statically configured IPV4 didn overwrite the APIPA address
Hey, for any 5G cellular network, is it wrong to use the handover data for research purposes? is there any open sourcr data available?
Is it possible for me to tunnel my internet connection through Facebook if my internet service provider gives me free unlimited access to Facebook?
Lol love this idea
There are a lot of people working with this method
wouldnt you have to connect to their router
Already doing it? If so then the answer to your question is yes. Otherwise, maybe. Probably also violating the rules of the server.
No, that's why I am asking.
No, if you could proxy traffic through a third party like Facebook at will, that would be a major security flaw
In my work zone the internet blocked only whatsapp works, but when I use this tunnel app and choose wahtsapp bundle allow me access to the internet , could you clearify it for me please.
I've never used this app and know nothing about it, but apparently it provides ssh tunnels? So what's the question? If you're asking how to access Facebook,.I would assume the Direct Internet option works?
If not you should probably find their support forum or something
There's CDRs on Kaggle https://www.kaggle.com/datasets/marcodena/mobile-phone-activity
ohh
Developers of such solutions can encode/decode raw data on both sides and choose any other protocols as carrier (not necessarily SSH/SSL). The one you referred to probably uses Whatsapp messages to bypass the ISP limits. While you can create the same, the implementation isn't trivial.
How I can create the same, also another thing need to know that's ISP gives an offer to unlimited youtube and whatsapp for one month but after few days they cheating on the users with reducing yt speed to 200kp/s.
Quite similar to creating your own VPN client/server, for which search engines might give you good references. Too much for a quick chat.
Ok, what about the second question ❔
Bandwidth is usually controlled by ISP devices, so your only option is to escalate to them.
Thank you
Thanks
Where can I learn computer networking to such an extend that will help me configure docker networks properly.
My main idea is to learn networking in such a way that will cover fundamentals and adavance topics for networking which will help me understand docker networking.
Documentation/blogs are my priority, videos suggestions are also okay.
You will probably have a better idea of what fundamentals you may be missing if you focus on specific projects and problems. Docker in itself doesn't assume much network knowledge.
That said, ConpTIA Network+ study materials cover more than what you really need. Maybe read through the official exam objectives and if you're missing certain things you can read up about them or check Professor Messer's free videos
Okay Thank you so much for the help
Let's say you have a LAN with 3 subnets. Let's then say that in Subnet1, you have computer1 and computer2, and on subnet2, you have computer3. If you have mDNS configured in all 3 computers, only computer1 and computer2 would be able to communicate via the mDNS, right? (Since computer3 is on a different subnet, it wouldn't be able to communicate with computer1 and computer2?)
Hi! I'm happy to share with you guys that after battling a lot with sockets and streams I could finally connect two players and a server and transfer data between them in json format to play blackjack. This is something to be shared here, friends and family would only frown if I told them
oi. question for my barematetal server-at-home folk. i have a linux machine, a windows machine and possibly a mac machine in the near future. i want to be able to share files between all of them and back them up with at least some little level of safety. my boss told me that 3 is the magic number of backups and thats what people use at google. but i was thinking about a RAID 10 NAS instead. 4 bays holding 2tb NVMEs. one drive would be personal stuff, one drive would be work stuff and the rest would be mirrors. the problem im imposing on myself is that i would like it to be fast too... so 1gigabit wont cut it because im telling myself that it wont, not because this is fundamented in anyway. ive just watched too many LTT videos. does this configuration make sense? if 1gigabit is too slow, is there some type of docking station out there with a 10gigabit connection? cause i can get the card onto the PCs but no way im opening my laptop to install another network card. so docking station + thunderbolt usb-c seems like the way to go. if this is all a bad idea, just crush it and give me a better one?
(about the drives, theyre gonna be all exfat. same model. about personal stuff, that includes pictures of cats, game files, and possibly some self-hosting)
I think network describe my problem at best.
def send_input_to_server():
while True: PROBLEM IS HERE
if pygame.key.get_focused():
keys = pygame.key.get_pressed()
if keys[pygame.K_w]:
client_socket.sendto(b"UP", (SERVER_IP, SERVER_PORT))
elif keys[pygame.K_s]:
client_socket.sendto(b"DOWN", (SERVER_IP, SERVER_PORT))
# Hauptprogramm
def main():
# Thread zum Senden der Inputs
input_thread = threading.Thread(target=send_input_to_server)
input_thread.daemon = True # Thread beenden, wenn das Hauptprogramm beendet wird
input_thread.start()
......
Can I set a delay in a threaded function? Because if I press a key, the loop is too fast. So too much sendto(....) will be runned by a simple press and release for under second
Is there only the two cheap ways? Read the time of OS and add some time or use a for-loop that just calculates an variable with += 1.
I didn't understand that well those two ways you described.
However, the one approach that came to mind was: https://stackoverflow.com/questions/43503995/pygame-key-get-pressed-how-to-add-interval
Does this help you out in any way?
I think yes, but does this also work if the function is threaded?
yes, but you will need to have a dictionary mapping the thread id to its individual value for "getCurrentMillis".
or some solution similar to this
Hey guys need help with this specific problem
https://stackoverflow.com/questions/79020096/making-a-diy-server-application-which-keeps-count-of-production-in-a-manufacturi
System Specs
Processor - i5 13th Gen
RAM - 16GB
SSD - Nvme 500GB
OS - Windows Home
RaspberryPi - Pi4 8GB
I have a Fast API application which is hosted on a windows machine, also a react app on th...
How can i host django application on godaddy
More something for #web-development as it's not really networking - and have you tried https://google.com/search?q=godaddy+django+hosting
Hello, im tryna do this project and we need to remotely control my friends android phone from my PC
Android phone is in USA
My PC is in a different country.
I dont wanna use any service like Anydesk/teamviewer because its very laggy,is there any other way? like a hosting hardware he can buy?
In this video, I show how to assemble a fully equipped backpack featuring software-defined radios (SDRs), Wi-Fi adapters, GPS receivers, and a multi protocol programmable board—all connected to a single-board computer (SBC) accessed remotely. This powerful setup is perfect for enthusiasts and professionals interested in wireless exploration, cyb...
Looking for an experienced programmer for website and SEO
Hey everyone,
I’m looking for someone skilled in programming with experience in building and optimizing websites. SEO knowledge is essential to ensure the site ranks well on search engines.
If this sounds like you, feel free to reach out to me! 🙂
What I’m looking for:
Experience in web development (HTML, CSS, JavaScript, etc.)
Strong understanding of SEO practices
Reliability and creativity
Looking forward to hearing from you!
Recruiting conflicts with this server's guidelines
Currently learning requests (Python library) and learning the basics of HTTP requests in general, for some reason I find this much more interesting than I expected
boys, is my understanding correct that this is solely local and i launch the receiver server on another device thats not on the same wifi it wont work?
if so how do i make it public
plug in some kind of public server, but can i somehow i make the senders computer be that server
bcs the implication is p2p messanging
Binding to a loopback address doesn't expose your server to any other entity, not even ones in the same network. You would need to bind to socket.gethostbyname(socket.gethostname())) to expose your server to at least other entities in your local network
thanks a lot, that worked
what is zmq
and i dont think sockets are good
i mean you cant use them outside your local net
someone knows how i can expose my pi zero to the internet?
Probably the same way you would expose any other machine to the internet
Port forwarding yada yada yada
If your pi only needs to send out requests and receive their responses, you don't need to set up port forwarding
nah it should be a socket server
Now you should be able to accept incoming requests on a port of UDP/TCP however you set up
yea, but i wont work
Are you binding to (socket.gethostbyname(socket.gethostname()), the_port_that_is_open)?
You need to bind to the matching local address and port you defined when setting up port forwarding
If that port number is correct than maybe you set up UDP accidentally instead of TCP or vice versa
do i have to setup the Port forwarding at the pi too or just at the router
Well I'm going off with 0 error tracebacks
If it's a TCP socket, did you call socket.listen?
my code is working but when i try to Connect to that Server without beeing in the same network it just cant Connect to that
yeah
my problem is not the code
just the thing that i cant reach my pi about the internet
Wait how is your client trying to connect to the server
You're supposed to use your public IP address for that
So does it work now?
nope
I thought you changed it from whatever IP address to use the public IP address
Are you using the right public port number?
It can be different
You can only check this in the port forwarding configuration you set
Okay it is set to 9999
yeah but wheres the public ip
You can look it up with a Google search
Go to like aws.whatismyip.com and you'll see the IP address your clients should be connecting to
bro thats the ip on the img before
Supposed to be the pi's IP address in the local network
For communication within the local network (includes the router)
nah
in that img m8
I don't know what ifconfig.me gives but that may very well be your (router's) public IP address
but thats it
So are your clients connecting to that?
I don't know how I can help you further without seeing your client connection code
its just that for testing a connection:
import socket
server = socket.socket().connect(("95.91.234.163", 9999))```
Should be
from socket import socket
SERVER_ADDRESS = "95.91.234.163"
SERVER_PORT = 9999
with socket() as client_socket:
client_socket.connect((SERVER_ADDRESS, SERVER_PORT))
What error are you getting with this?
same error as before
Which says what?
then its working
without using a third party package like zeroconf, how can i send an mDNS query to devices on my local network (and get a response)?
Implement the protocol again by yourself? So, what's the point of using Python without "third party" packages?
i cant use third party packages as a requirement. would something like this be as simple as constructing a UDP packet and sending it to the broadcast address 224.0.0.251 on port 5353 and seeing who responds?
i have a doubt why is the Domain names paid. from where are these websites like Namescheap and Godaddy brokers us domains
someone owns a TLD right
(a tld is like .com, .net, .org, etc.)
(i think) they allow such services to sell domains with the TLD
with a licensing fee
oh
lets say i own .hello
i can allow this person to sell domains that have a .hello TLD
and they pay me money
oh so its just for uniformity and the process of hosting this dns stuff we pay money to these brokers which give us .org .com stuff
like i did'nt see any other websites like .hello or something .com .net all are very common and uniform among all sites
ICANN have a monopoly on deciding which domain names exist and who gets to use them. In exchange for a shitload of money, they will say that your company gets to be in charge of some subset of all possible domain names.
Your company then charges other companies and people, and they'll say you're in charge of some domain
smh monopoly = bad
I found this pretty interesting video about time servers. It was cool to see how we can get time with nano second precision nowadays in such a small device
Get NordVPN 2Y plan + 4 months extra plus up to 20 GB Saily data voucher ➼ https://nordvpn.com/networkchuck
It’s risk-free with Nord’s 30-day money-back guarantee!
In this video, I install a high-precision time server in my studio using the OpenTimeCard Mini from TimeBeat. Instead of relying on external Network Time Protocol (NTP) server...
is anybody know remote software other than anydesk or teamviewer
Bro💀
What is your goal?
Is there an area where I can ask docker questions
#packaging-and-distribution probably
I'm using Obsidian for a lot of my documentation but I think there's a limit to how much mermaidjs plugin can do. Can anyone share recommendation on documenting and creating network diagrams via markdown?
Hi! You might find this CLI program useful
A CLI and local web plain text note-taking, bookmarking, archiving, and knowledge base application.
Huh, this looks pretty cool.
Might try it out some time
Can you show an example of a network diagram out of it?
Hello everyone! I'm working on an automated system to play this ctf. Basically I'm using paramiko to connect through ssh to copy a python script, run such script and create a password from the result. My code uses invoke_shell to get the results from exec_command that runs later. However exec_command throws a paramiko.ssh_exception.SSHException: Channel closed. I've tried to implement this solution but it didn't work, also tried fabric and same luck.
It's a CLI program so it won't help you in that way that's why I said you might find it useful
I'll be trying pwntools in the meantime.
Gee thanks
I've used Fabric in my work. What does your fabfile function look like and how did you run your fab task?
I just tried to start the connection and couldn't move on then. @snow yoke from #cybersecurity suggested me to use pwntools so I want to give it a go instead of finding out what's going on with fabric, thanks anyway. Can I come back to you if I decide to find a way out with Fabric?
Sure
Cheers man 🤘
Hey how can i change my port in pihole
It says failed to create listening socket since it's already in use
According to the docs, the ports are controlled by lighttpd. So edit its conf file and restart pihole. https://docs.pi-hole.net/main/prerequisites/#ports
Operating system and network requirements
Ahh thanks I'll refer this now
its this channel ok for asking network packet related questions?
Hey @midnight hill, I found this by accident, you might find this useful, I'm not sure though
Thanks for being thoughtful but this is a network diagram. Can it do that?
Oh sorry, that can't do that I got your question wrong
Yes
i just use draw.io
but it just a GUI where you would drag the devices
it doesnt suport markdown
like this
Yea I'm familiar. Thanks for the suggestion.
I use it at work since it cross compat with some Mac and Windows users... so t heres that
(possible unrelated) but wow curl -vvvv is verbose
Sent some message to a local tcp server, and it sent some extra bytes along with the message. What are these?
You mean the 0d 0a at the end? Or the stuff before your message?
before and end both
When an app stops listening on a port, it remains bound for a while. Why was I able to bind a new app to the same port immediately after closing the first one
0d 0a is a line break, your message possibly ends in a \n.
The bytes before your message are the headers of the ethernet, IP and TCP protocols, in that order.
They contain the source and destination IP addresses, source and destination TCP ports as well as lots of other information so that your message gets to the correct destination intact.
Oh ye I thought this was it
Wbt?
What OS are you on?
I'm not 100% sure on that one. But my guess is the network layer on your OS prioritizes a process requesting to listen on a port over the old one which has stopped listening.
O_o 👍
Maybe close() frees the socket for other programs to use immediately
I've used Lucid Charts, and even Visio in a previous job. I'd also be interested in any mermaid/markdown compatible options
Where does it say it remains bound for a while?
Do you mean the TIME_WAIT state?
TIME_WAIT or CLOSE_WAIT one of these
I am not sure which one was which
Does anyone knows how can calculate MTR in Linux?
Hi everyone,
I need to implement a solution in Python that can send requests through a proxy using Kerberos and NTLM authentication to hit specific target URLs. I've looked into libraries like requests-kerberos and requests-ntlm, but I'm not entirely sure how to set them up for proxy usage.
Could anyone provide guidance or code examples on how to code Python requests to authenticate via Kerberos and NTLM through a proxy?
Can some1 help and vc
Found one. https://d2lang.com
Just getting started
woah that looks good
Hello
#cybersecurity message @flat arch
You can implement your own protocols using raw sockets in different OSI layers. It's not harmful or anything because recipients who are unable to communicate in it will simply ignore its packets
But what if I want the recipient to understand my protocol, how can I do that?
@steady horizon
You'd implement the protocol on your recipient's machine and make sure that implementation runs
The only difference between doing that and implementing protocols over TCP/IP or UDP/IP is that there is no specialized hardware component that would run your implementation for you. You'd be running it on the CPU like a program
Thanks for the help 🙂
Can you also suggest me what programming language should i use for this stuff?
Python works
Okay got it
Hi can some one help me how to send request to a Twitch url:https://passport.twitch.tv/protected_register to make a twitch account? I can't finde out wie it doesn't work
anyone know the default route 0.0.0.0/0?
Hey, I've got a simple routing issue with my rpi. I'm trying to route local traffic through eth0 and wan traffic through wlan0. I'm not sure where to even begin, as wlan0 doesn't even have an IP. sh dan@raspberrypi:~ $ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ... 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether d8:3a:dd:e8:15:8a brd ff:ff:ff:ff:ff:ff inet 192.168.10.102/24 brd 192.168.10.255 scope global dynamic noprefixroute eth0 valid_lft 84170sec preferred_lft 84170sec inet6 fe80::5480:8b26:5310:8113/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether d8:3a:dd:e8:15:8b brd ff:ff:ff:ff:ff:ffand my routing tables:sh dan@raspberrypi:~ $ ip route show default via 192.168.10.1 dev eth0 proto dhcp src 192.168.10.102 metric 100 192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.102 metric 100
Fwiw I have set the network in /etc/wpa_supplicant/wpa_supplicant.conf though I assume it's not connecting since ethernet is plugged in
hello
hi
i have a number if different audio cables connected to my system
I'm using windows
how can i find the port number if eache cable
guys
i need help
my web client i wrote isnt working anymore
??
whats this websocket issue
bruh
Easiest way to get ssl working for flask socketio based app? I would love to use adhoc but it doesn't work correctly...
Maybe put it behind a proxy? Caddy works well for SSL setups, it handles Let's Encrypt certificates automatically
A 426 error, also known as "Upgrade Required," is an HTTP status code that indicates the server requires a specific upgrade or a different protocol to process the request. In other words, the server is telling the client (your browser or application) that it needs to upgrade its protocol or request method to access the requested resource.
Hello Everybody
Welcome! do you build neuro networks?
I do a sorts of that, but I am currently focusing of penetration testing and building servers from scratch.
Woah, you went the other way haha. do you have a plan in mind youre trying to execute?
I am trying to secure my new server with using multiple VM on my laptop. The original idea was to try and make each virtual machine attack each other on my computer locally( with adjacent ai to help it of course) to see the weaknesses in each VM. But then I had an idea of creating a web UI for each VM so that I can execute code or work on features of that specific VM. The final goal is too get all VMs working in tandem for testing, counter offensive attacks, defensive attacks, and rewriting of code for defense.
@sturdy breach It is just an idea and I am about 5% done with the project.
Hi, iam trying to sneak into a MAN network in my area, which allows only one device at one time for 30 days (pack). They give password.
And once the device is connected it locks the first device MAC address.
Even if u turn on the hotspot of that device it won't let another device to connect. It directly takes to the login page and by adding same password it show it wont connect for this device...
No matter whtever i try i lt wont allow me connect more than 1 device...
How to solve this???
PlantUML is old but pretty mature and powerful tool
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
this seems extremely legally (and morally) questionable
How so?
I am already paying for 1 device, which is worth for more than 5 members or private family wifi..
It's just in our complex they overcharging and cutting other competitors so they can rule and make money...
If i want to connect my phone and laptop then i have to pay double amount.
https://discord.com/channels/267624335836053506/1301572638468210739^
can someone help
... then pay double?
overcharged things doesnt make it right for you to steal them
I mean you can probably do this without trying to bypass device limits things if you can configure a NAT gateway so your two devices route via the nat which is the main device connecting
That being said though the words "Free wifi" as your general means of connecting would probably warrant also setting up a VPN configuration while you're at it... Since any managed network like that can be pretty sketchy
Also other less annoying alternatives include:
- starlink
- 4/5g cellular wifi routers
lol I managed to get GPT to print its IP adress, is it valueable at all?
use 50 mpbs
not stealinguse 50 mpbs, but differently
stealing
????
It's all bandwidth lol
Downloading 50 gigabytes on one device and 50 on another is not any different from downloading 100 gigabytes from the service provider's perspective.
They just want to charge you twice as much for literally nothing, because most people are stupid enough to pay them double for no reason.
i mean they can just tell the netadmin to change it to charge by bandwidth ¯_(ツ)_/¯
but how they charge it doesnt affect its questionability (idk the word here)
I don't think it can even technically be really called theft of service
because for it to be theft of service, you'd have to be getting service that you didn't pay for. But operating two client devices instead of one is neither more service nor a different service.
i mean
if i have 1 website
and put it behind cloudflare
i can't take another website and also put it behind cloudflare
even if i own the website
If you pay for the service and you're avoiding the terms and bypassing thats still theft. Imagine if you did that to your ISP to get your 100mbps connection to 200. That's theft still
Er what?
you absolutely can
200 mbps is a different service from 100mbps, so this example doesn't work at all lol
I don't think you actually read anything I wrote
Downloading 50 gigabytes on one device and 50 on another is not any different from downloading 100 gigabytes from the service provider's perspective.
Consuming twice as much bandwidth as you should be allotted is pretty fucking obviously different from the service you paid for from the service provider's perspective.
Consuming bandwidth within the limits that you paid for is not.
I have literally no idea where this comparison comes from.
How many collision domains and broadcasts domains are there?
5 collisions for the hubs, 2 for the switches?
and 2 because the router goes to 2 switches?
Baka, they cheating us.
How to do that?.
Okay, here's what i did.
There are two steps that were working but not very well.
-
I used reverse tethering from my phone to my laptop via a cable, which works perfectly on both devices.
-
I directly connected the router to the network, and it broadcasts Wi-Fi to both my devices and even more devices. However, the data(internet) doesn’t work simultaneously. If I use it on my phone, it doesn’t work on my laptop, and vice versa.,
It stop for like 2-3 mins before connecting to other device.
for you to determine how many broadcast domain, you have first to know how many subnet in the topology
say left the left side is 192,168.1.0/24 and right side is 192.168.2.0/24
then there's 2 broadcast domains
and as for collson domain, how i do look it is
i dont really look at devices perspective
rather just count how many cable are there
although cable isnt really exactly right
as some LAN uses trunk port instead of access port
and iirc hub is differ to switch and router
like regardless of how many connection from hub are, theyre 1 collison domain
there are 7 collison domains total
can i open different websocket connections to the same server in websockets library in python?
sounds like they have that access point set for only 1 MAC address at a time. really no getting around that unless you spoofed the addres onto other devices maybe? but even then it still probably has the limitation of allowing only 1 MAC address for a connection
similar to port security configurations we use on our networking devices
Yes
hello
hello
do you know how to stop tcp retransmissions or rst packets
idk what caused it
i just get a lot of them and my ping is double unless i use ip allocation and it knocks it back down to 50 or 60 but i can get eu ping on a na server
hi i just learnt about vlans and subnet masks
I am lookinjg at recreating a network where i have a subnet mask of 255.255.255.192 for (2^2 networks, 2^6 hosts)
if i am correct the way this works is. 192.168.0.[1100000]
so i have 6 available bits for host assignment
this is my test network.
I have 3 VLANS
10 - Finance
20 - HR
30 - Management
this is my router on a stick network
if i want to assign each department their own vlan
do i assign it to PT switch 5
each port
or do i have to manually assign it to each port within PT Switch 3,6 and 4
on top of that so i have assigned trunking ports to sweitch PT 5
to the 3 switches and the router
Hello everyone, I hope you guys are having good time.
I had this thought in mind, I have a fastapi application and I was thinking to host it on Mac Mini M4 .
Is it possible to do it in real life for real project or is it a stupid idea?
Please Advise.
it's not a stupid idea, it would probably work very well in fact as a cheap, self hosted solution
if it has an ethernet port, I'd recommend plugging it in so it doesn't drop connection but it's not neccesary
whichever switch is fine , in industry level , they even have says most of VLAN 10 on sw1 but some of the other of PCs that is part of VLAN 10 is on another switch, but make sure theyre still connected, and its usually bcuz of how their building are designed
as for trunk port
you can manually configure them or use DTP
but in enterprise level they dont use DTP for security reason sometimes
but you need to understand how the frame will travels and how the router will route the interVLAN's communication
Hello, im trying to use a socket to send messages between computers but im having issues on the client side, code after the connection to the server isnt running. On the server side it is printing the connection fine so i know line 7 is working, but line 8 never prints to the console
(im very new to sockets so sorry if this is a dumb question)
Hmm. Try using socket.create_connection? https://docs.python.org/3/library/socket.html#socket.create_connection
Also show your server code, and the output
Show the full code as text, using a multi-file paste
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
i need sophisticated advice on networking protocols
To design your own protocol, to implement a protocol, or something else? Once the direction is revealed, the internet is full of good guides/tutorials to resolve the sophisticated part.
Does anyone have an idea on how to install ($(LIBdir)/libhpl.a) on Ubuntu
which layer of the OSI model?
also i dont think new potocol would be come in handy like homebrew
make server send me stuff while i reject it so it doesnt even count to my data limit @dusty lance
straight up drop packets
With Networking protocols are you talking about routing protocols or more like TCP/UDP?
if it something like TCP/UDP i think @rose vessel would be the right person
he have experience working in ISP
so, maybe he have the required understanding
i just can help if it something like OSPF/BGP/ a bit of EIGRP and layer 2 stuff
no idea in just want to drop some packets to not count to the proxy network
thats also interesting, i thought of making my own proxy network with 100k+ ip's. ipv6 fine
if it something like proxy,server,dns...tbh, i havent really dive deep on those stuff
please help me
i can send a packet from 192.168.1.254 -> .2.254
but not from 1.254 -> 3.254
show run is identical in all switched
router options are also identical for all sub interfaces
what is the point of double cables for each inter switch connection
redundancy ?
although i dont rmb EtherChannel
wait , do you even have trunk configured from switch1 and router?
double the speed
you can combine up to 8 cables into an ether channel
let’s say each cable is 1gb/s
you now have 8gb/s
emm yes
redundancy too
and simply being able to send more traffic at once across the channel
as the bandwidth doubles in this case
however just because it can be used for load balancing
that does not mean that the loads are distributed equally across the channel
for layer 2 i just know trunking,DTP,Switch stacking,STP,RSTP,MSTP,private VLAN,Port security but i nvr knew this 2 cable interconnection even though theyre just single VLAN
Anyone can help in Python socket client side
I am sharing large size file NodeJS socket to Python socket client side socket but program show (packet queue is empty, aborting)
How to solve this problem
had anyone made ftp server in python
not client jsut server
size?
how much big?
No stop this spam stuff please
hi everyone, im working on a project where i need to detect if someone is remotely accessing my system. One approach i thought was to check the background running apps if there is any suspicious software installed but that would not be sufficient as the name of the software can be changed. so is there any way how to detect if some is remotely accessing my system ?
and i want to detect in such a way that there should be minimal or no false positives
wow you opening the hacker-network security gate here
so you can of course analyse your network traffic in userspace using tcdump or wireshark. you can also check processes and your ssh keys. then theres also the kernelspace. so that depends on your system. on linux you can use ebpf. that brings us to intrusion detection like suricata which is implemented in opnsense
i would advise you to use zero trust access and get rid of ssh directly
the cool thing about kernelspace network filters is that you can drop suspicious packets directly in kernel space before they even reach your apps
20mb
it has to work
work but with (packet queue is empty, aborting) this message
import socket
def send_file(server_ip, server_port, file_path):
try:
# Create a socket object
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect to the server
client_socket.connect((server_ip, server_port))
print(f"Connected to server {server_ip}:{server_port}")
# Send the file name to the server
file_name = file_path.split("/")[-1]
client_socket.sendall(file_name.encode())
# Open and send the file data
with open(file_path, "rb") as file:
while True:
data = file.read(1024) # Read in chunks
if not data: # End of file
break
client_socket.sendall(data)
print(f"File {file_name} sent successfully.")
# Close the connection
client_socket.close()
except Exception as e:
print(f"Client error: {e}")
if name == "main":
server_ip = input("Enter the server IP: ")
server_port = int(input("Enter the server port: "))
file_path = input("Enter the path to the file to send: ")
send_file(server_ip, server_port, file_path)
i used this code
a week ago
Hello can someone code this thing for me
its an email sender that sends emails through gmail and it sends in like 0.01 seconds and it has a text file of every email/user to send it to
How ethernet wires prevent two way traffic collision, i.e. traffic from both sides at the same instant of time?
Who here can explain this??
I'm experiencing a significant difference in download speeds between my PC (wired via MoCA (Coaxial Cable over Ethernet)) and my iPhone 15 Pro (connected via 5GHz Wi-Fi) while downloading an ISO file for VMware vCenter from an MSP in the US.
My PC over MoCA gives me: 406.8 Mbps download, 19.5 Mbps upload (measured), but the ISO download was only at 0.8 GB after an hour.
My iPhone 15 Pro (Wi-Fi): Downloads the same ISO at ~4 GB per 5 minutes, with measured speeds nearly matching the PC’s, if not, slightly lower than the speeds above.
Interestingly, other downloads (e.g., Steam games), bulk downloads on the PC are near-instant, so this issue seems specific to the ISO download. Why might my iPhone be outperforming my PC in this case, despite being on the same network?
what is the bandwith of your Iphone's WI-FI and your cable
would be the answer ig
they both are different link
Need socket client side code not server side
hey! let's say i install some package which supposed to access internet to my app (for instance i don't trust package authors so much). and i want to profile all network requests it does. what is the best tool to do that?
wireshark
Yes wireshark is best
Installation is super easy and it's very easy to learn how to use
for what this code
Will send later
ok
hi
i'm using httpx to post data to an API
the request containes a file and some text
response = await client.post(url=url, data=data, headers=headers, files=files)
the problem is, i have to encode the data to json so the API can read it
but if i do that, httpx won't include the file in the request
