Category : c#

I try to make a custom php extension for code Encryption purposes, I followed this tutorial to make an custom extension: How to make a PHP extension i get this warning when compiling the extension: WARNING The following arguments is invalid, and therefore ignored: –enable-php-helloworld i did all according to the tutorial, i build on ..

Read more

Hi I am trying to perform a POC on this CVE. Everything works fine, but I get this winerror 10060. When I perform my exploit. this is what I get, any fix on this? This POC is meant for my assignment. It crashes my victim machine but I could not get full access to the ..

Read more

public string NxtKeyCode(string KeyCode) { byte[] ASCIIValues = ASCIIEncoding.ASCII.GetBytes(KeyCode); int StringLength = ASCIIValues.Length; bool isAllZed = true; bool isAllNine = true; //Check if all has ZZZ…. then do nothing just return empty string. for (int i = 0; i < StringLength – 1; i++) { if (ASCIIValues[i] != 90) { isAllZed = false; break; } ..

Read more

I have a big file, that was created with PHP. File contains array, with items glued together. How am I split/parse them right in C#? Or make it like List<Dictionary<string, string>>. array ( ‘field1’ => ‘10.00’, ‘field2’ => ‘false’)array (…) Sourc..

Read more

I am making an application with C#, in needs to post JSON array to my php api file. I have this code: string JSONString = JsonConvert.SerializeObject(dt); var client = new RestClient(ipadress); var request = new RestRequest(apiendpoint, Method.POST); request.RequestFormat = DataFormat.Json; var body = new { key = apikey, items = JSONString }; request.AddJsonBody(body); var response ..

Read more

I’m using a key pair generated by phpseclib and then I use it to encrypt in C# a message and decrypt in PHP. The public key is: —–BEGIN PUBLIC KEY—– MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvh4OvlS5+7Skk5Nij296 rDAKQsxZrz+gV/MInvWqe/SAOlOf8vqs6xJsn7sd523X8m+b0Kd751UbeeDQRGjC mbQc9iwQHUFrNa0bSVnpyoc27K+cuxNdtoPG1XXRCFLKKqVJKSyB5ZPu+oQr+OIo 6zYhU5jfCEYbpzPdyYqfDGJPpJv/r8F11MCBrdbvD5Z42ysTDqSxFGIfROWtDOP5 ShSNcVGRQYfX3E/v8j+qy0yu2PD/W1UqNd3m6TTkUj/u1XukUMWp+tfXEdEp7IEU askvGnBfHgJcsBp2c6kT9WxIU0ai4G8mo/2OsHprw42PBWLcJwfUeUgY3itSczni WQIDAQAB —–END PUBLIC KEY—– The conversion to XML is done via https://superdry.apphb.com/tools/online-rsa-key-converter Here is how the message is encrypted ..

Read more