All Questions
19 questions
2
votes
1
answer
260
views
to capture packets with options like -i interface, -o open file, etc using pyshark and python
review my code if possible. I am making network packet capture using pyshark and python. if possible give me some feedback about the code and help to make it better.
...
1
vote
3
answers
558
views
Improving a TCP communication between Python and C# programs
I have been using a TCP communications between Python and C# program. Python side (server) runs on a raspberry pi 4 and C# side (client) runs on my computer. RPi and PC connected over Wi-Fi. I have a ...
3
votes
0
answers
190
views
one-thread blocking approach for socket tcp multi-client server
my use-case (an home task to practice abstraction, exception handling, unitests) is regarding a message-queue with small-fixed-size client requests from stdin of such:
[ENQ] data (insert json ...
5
votes
1
answer
3k
views
Streaming Messages to multiple Clients
I wrote a server-client application in Python where the server sends a never-ending stream of messages to connecting clients.
I was in need for such an architecture since I want to retrieve and ...
4
votes
1
answer
4k
views
Socket chat room made with Tkinter Python
This is a real live chatroom that I have made with Tkinter
I posted a question before about making a chatroom but the problem that I had with that one was that only one user could connect to the ...
6
votes
2
answers
3k
views
Socket chat room in Python
This is a Python chat room that I've been working on and it enables to you to chat to other people on the same network through Python.
Server.py:
...
1
vote
0
answers
2k
views
Flask app for control TCP server
This snippet allows to up and down TCP server via Flask endpoints. I'm seriously concerned about global variables here. And asking for review this code.
The main idea is to be able to up/down TCP ...
1
vote
1
answer
4k
views
Multithreaded non-blocking tiny echo server
I wrote this code to make a non-blocking server without using select(), my main concern is to catch as many exceptions as possible for worst case scenarios (so I ...
4
votes
1
answer
234
views
Checks for TCP-32764 exploit
I refactored this proof of concept for the TCP-32764 exploit.
I'm writing a scanner based on this POC. The code works fine but It was really hard to read.
Here is the original code
...
7
votes
2
answers
12k
views
Protocol implementation, TCP, sending images through sockets - follow-up
I would like to ask about your opinion about my code. The idea is simple: I designed my own protocol, where client asks server about the image, and the server sends the image, following the below ...
10
votes
1
answer
4k
views
Network protocol using TCP, sending images through sockets
I would like to ask about your opinion about my code. The idea is simple: I designed my own protocol, where client asks the server about the image, and the server sends the image, following the below ...
4
votes
1
answer
2k
views
TCP chat room in Python
I have recently started looking into networking with Python. I saw some tutorials about the socket library so I decided to give a "live chat room" idea a go. It works (on Windows, ...
4
votes
1
answer
727
views
Buffer for TCP data
For an assignment (not school), I was supposed to make a "web browser" using Scapy.
While storing the response, I initially thought of
...
5
votes
1
answer
1k
views
Server connection handler in Python
I am working on a server for a smart house. This part of code is responsible for communication with client (separate application), sending requested data and ensuring everything is safe.
I've decided ...
4
votes
2
answers
610
views
Python 3 NetScanner Daemon
I’m pretty new to programming and python in particular. This is a simple ICMP/TCP scanner that dumps output to a terminal and/or csv file. My goal was to make a daemon that could do simple scanning ...