Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string __str = String.Join(" ", data.Select(x => x.ToString("x2")).ToArray()); //covert the byte[](packet) to hex string
- string __ascii = AsciiToString(data); //convert the byte[](packet) to ASCII
- if (encrypted) FormMain.PFA(form => form.listViewAnalyzer.Items.Add("S<-C [ENCRYPTED] Blowfishkey = 0xFF"));
- else FormMain.PFA(form => form.listViewAnalyzer.Items.Add("S<-C"));
- ListViewItem item = new ListViewItem(__str); //create new item and place the packet as hex string
- item.SubItems.Add(__ascii); //add the ascii variant as substring
- FormMain.PFA(form => form.listViewAnalyzer.Items.Add(item)); //add the item
Add Comment
Please, Sign In to add comment