C
C#6mo ago
ensman38

✅ How can I change this code

public partial class Form1 : Form     {         string to be monitored="BITS";         int sirano = 0;         bool case;         ServiceController service2;         public Form1()         {             InitializeComponent();         }         private void Form1_Load(object sender, EventArgs e)         {             int sn=0,active=0,passive=0;             int i;             //basic information of the computer is listed             string computerName = Dns.GetHostName();             label4.Text = computerName;             string ipAddress = Dns.GetHostByName(computerName).AddressList[0].ToString();             label3.Text = ipAddress;             //services are listed as a grid. sec service number defines the number of active and passive services, and sirano defines the service to be monitored.             dataGridView1.ColumnCount = 5;             dataGridView1.Columns[0].Name = "No";             dataGridView1.Columns[0].Width = 20;             dataGridView1.Columns[1].Name = "Name";             dataGridView1.Columns[2].Name = "Screen";             dataGridView1.Columns[3].Name = "Type";             dataGridView1.Columns[4].Name = "Active"; ///**                 ///one. PART TO BE DONE AND CODED                 ///When there is a change in this section, one of the active programs on the computer                 ///First of all, the names and information of those who change the list will be listed in listbox1!!!                 ///Which program called SERVICE..!!!                 ///                 /// SECOND PART TO BE DONE                 ///In addition, it is requested to monitor IP packets and list external machine access during the transaction process.                 ///When there is a change, the accessed IP address and port information should be listed in listbox1.
27 Replies
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
ensman38
ensman38OP6mo ago
in a job interview
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
ensman38
ensman38OP6mo ago
I'm not the person to meet my friend namespace application {     public partial class Form1 : Form     {         string to be monitored="BITS";         int sirano = 0;         bool case;         ServiceController service2;         public Form1()         {             InitializeComponent();         }         private void Form1_Load(object sender, EventArgs e)         {             int sn=0,active=0,passive=0;             int i;             //basic information of the computer is listed             string computerName = Dns.GetHostName();             label4.Text = computerName;             string ipAddress = Dns.GetHostByName(computerName).AddressList[0].ToString();             label3.Text = ipAddress;             //services are listed as a grid. sec service number defines the number of active and passive services, and sirano defines the service to be monitored.             dataGridView1.ColumnCount = 5;             dataGridView1.Columns[0].Name = "No";             dataGridView1.Columns[0].Width = 20;             dataGridView1.Columns[1].Name = "Name";             dataGridView1.Columns[2].Name = "Screen";             dataGridView1.Columns[3].Name = "Type";             dataGridView1.Columns[4].Name = "Active";
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
ensman38
ensman38OP6mo ago
They were asked to deal with this code, and the change was done through the cyber security C# form application, but they asked my friend for the rest of the code. Yes, but the code is too long to be shared here.
Angius
Angius6mo ago
$paste or Github repo, then
MODiX
MODiX6mo ago
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
ensman38
ensman38OP6mo ago
ensman38
ensman38OP6mo ago
There is no rest, we are working on those who asked for these, but we do not know which way to follow.
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
ensman38
ensman38OP6mo ago
Yes, but my friend was not taught this code, that's why they can't do it.
Angius
Angius6mo ago
Sounds like they should not be interviewing for a C# Winforms developer if they don't know C# Winforms
ensman38
ensman38OP6mo ago
It was sent as an e-mail, not as an interview, and was requested to make changes.
Angius
Angius6mo ago
So it is not a job interview?
ensman38
ensman38OP6mo ago
It was discussed during the job interview and these codes were thrown away, they said that mail transactions should not go through the interviews.
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
ensman38
ensman38OP6mo ago
The company wants the code, but my friend cannot change the application code because cyber security does not work at all.
Pobiega
Pobiega6mo ago
Nothing here makes sense, except that this is out of scope for this discord..
Anu6is
Anu6is6mo ago
cyber security doesn't work? 😕
Angius
Angius6mo ago
What does it mean? Cybersecurity is a research field, a job category, etc What's it mean that it "does not work"?
Jimmacle
Jimmacle6mo ago
this conversation is very confusing
ensman38
ensman38OP6mo ago
thank you
Jimmacle
Jimmacle6mo ago
:HUHH:
The Fog from Human Resources
:SCshocked:
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
exixt
exixt6mo ago
bro i lost 50 brain cells reading this convo
Want results from more Discord servers?
Add your server