LuD1161 / CyberSecurity-IIITA

A Repo to keep the CyberSecurity-IIITA projects
10 stars 6 forks source link

Make GUI for the port scanner #3

Open LuD1161 opened 7 years ago

LuD1161 commented 7 years ago

GUI for the port scanner

The GUI should be as descriptive but at the same time clutter free and elegant as possible. Please comment in any further resources you find for the GUI here.

Suggested library

The output from the backend would be like this and the frontend would receive it likewise and do further processing as needed.

{
    "port": < port_number_here > ,
    "type_of_port": "TCP/UDP",
    "type": "malicious/good/grey ( choose from the three keys and based on that highlight the column displaying it in the GUI , grey is when it can also be used by legitimate services)",
    "current_process": < pid_here > ,
    "filepath": < filepath > ,
    "remarks": "<here data if available in blacklisted.json>"
}

e.g. {
    "port": 4950,
    "type_of_port": "TCP",
    "current_process": 2187,
    "filepath": "C:\\User\\HP-PC\\Downloads\\asghdt.exe",
    "type": "malicious",
    "remarks": "ICQ Trojan"
}

For malicious ports you can mark the whole row as red , where you're displaying it.

Parent issue#1

GYeyosi commented 7 years ago

Have a look at the GUI of this advanced port scanner. https://www.advanced-port-scanner.com/

LuD1161 commented 7 years ago

@GYeyosi The GUI looks good.

@AshrithReddyT @bhanu1911 Please look into it , not necessarily the same but somewhat like this i.e. minimal, informative and clutter free. Keep in mind that we don't need showing ports on others' computers rather only the host's ports. So, keep the design that way. It would be good if you look into the designs already made into the PyQT editor , there are many community made designs available. Also later we can think of switching it to material design , that would look pretty cool and elegant.

When a rough layout is made kindly let me know.

AshrithReddyT commented 7 years ago

what information will be taken or shown to the use?I mean for creating input boxes and stuff if necessary.

LuD1161 commented 7 years ago

@AshrithReddyT For input , I don't think we may need anything as such. Cause we would be scanning the local ports and making a report on the same. We would need a button for start another one for pause and another one for stop. Rest you can add into whatever you feel like is needed.

LuD1161 commented 7 years ago

@AshrithReddyT @bhanu1911 please check the updated issue statement

AshrithReddyT commented 7 years ago

So the list of possible malicious open ports is created as json file after the scan and the GUI must access the file and display those in a new window?

LuD1161 commented 7 years ago

No, that's not the case. The backend will send the json to frontend ,not as a file but as a variable, after all it is one application. And the frontend will use this data to complete the gui .

On 1 July 2017 at 20:13, Ash notifications@github.com wrote:

So the list of possible malicious open ports is created as json file after the scan and the GUI must access the file and display those in a new window?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LuD1161/CyberSecurity-IIITA/issues/3#issuecomment-312435841, or mute the thread https://github.com/notifications/unsubscribe-auth/ARCJvhRN9nvNzUlkZ3m-sFb83i1LgKqGks5sJlsDgaJpZM4OGQHk .

AshrithReddyT commented 7 years ago

Thats even better then I guess.

AshrithReddyT commented 7 years ago

Sir and I am still facing problems with the resizing content when window is resized.Can i make the window fixed(cant be resized but can still be moved around)?That will make my work easier.

LuD1161 commented 7 years ago

Okay. Proceed with that and open an issue for the same , it can be worked upon later :) .

On Jul 2, 2017 00:04, "Ash" notifications@github.com wrote:

Sir and I am still facing problems with the resizing content when window is resized.Can i make the window fixed(cant be resized but can still be moved around)?That will make my work easier.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LuD1161/CyberSecurity-IIITA/issues/3#issuecomment-312448532, or mute the thread https://github.com/notifications/unsubscribe-auth/ARCJvm1E-251dir_0GviZNvmghlm1Ogsks5sJpFPgaJpZM4OGQHk .

cromagnonninja commented 7 years ago

Sorry for the late reply, I have very limited internet access. I am working on the resizing part and the json display bit as we speak. I will next comment with the updated status on the 6th of July.

cromagnonninja commented 6 years ago

@AshrithReddyT is this what you were looking for? https://stackoverflow.com/questions/34637099/python-qt-automatically-resizing-main-window-to-fit-content

cromagnonninja commented 6 years ago

https://stackoverflow.com/questions/41471604/python-json-to-array-pyqt-qlistwidget

This should help with the JASON handling.

cromagnonninja commented 6 years ago

*json