I work in cyber security and I've put together a small GUI to connect to a couple of API's, that detect whether an email address has had its passwords leaked.
The application uses 2 forms, when it first starts it looks to see if there is an XML file with the users credentials, and if not it opens up a second form for the user to enter their data.
The code that checks this is here
procedure TForm1.FormShow(Sender: TObject);
begin
(* Check to see if a config file exists *)
if (FileExists('nergalConf.xml') = True) then
loadConfig
else
begin
try
deetsForm.ShowModal();
finally
deetsForm.Free();
end;
end;
end;
(deetsForm is the second form that the user can enter their details on...)
I wrote and tested this on the latest version of Xubuntu Linux and it works fine. When I tried to run the program on Kali Linux though I got the error below about it not finding the config file.
Kali is really the target platform for this application, but I'm posting this under General in case the problem is due to my code rather than the OS, since it works on a different flavour of Linux.
The full code is at
https://github.com/cyberfilth/nergal/