No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
28 Posted Topics
I am defining the below function in order to calculate combinations .... it works fine on borland... but when i run it on vc++ 6.0, it generates the error "error LNK2001: unresolved external symbol "public: void __thiscall bruteFrce::generate_combination(int)" (?generate_combination@bruteFrce@@QAEXH@Z) Debug/AlgoProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe." … | |
I want to write a code to find all combinations of 4 numbers, for example numbers = 1,2,3,4 combinations are: 1 2 3 4 12 13 14 23 24 34 123 134 234 124 1234 Plz help i am unable to understand the logic... thanks in advance... | |
The following code line is working fine... XmlNode sslNode = appHostNode.SelectSingleNode("sites/site[@name = 'www.wow.com']/ftpServer/security/ssl"); Now I want to pass a variable instead of 'www.wow.com'... please guide how can I do it.... | |
I want to store an "Intptr" type value in a file and later retrieve it to pass in a function... Can any one please guide , how this can be done?? The value retrieved by the file is of type string... Please guide how can I manage it... | |
I want to create and write to file on a machine which is connected to my network... The code is: logfile = new StreamWriter("\\\\192.168.15.237\\C\\AdminTrace\\" + " " + DateTime.Now.ToShortDateString().ToString().Replace("/", "-") + ".txt", true); the IP address corresponds to the machine on which i need to create the file... and the … | |
I want to use the function CryptProtectData() the definition is: [DllImport("Crypt32.dll",SetLastError = true,CharSet = System.Runtime.InteropServices.CharSet.Auto)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool CryptProtectData( ref DATA_BLOB pDataIn, String szDataDescr, ref DATA_BLOB pOptionalEntropy, IntPtr pvReserved, ref CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, CryptProtectFlags dwFlags, ref DATA_BLOB pDataOut ); the parameter "CRYPTPROTECT_PROMPTSTRUCT pPromptStruct" requires a ref to structure, … | |
i need to ask about the "SharpPcap" function startCapture()... Does it capture both inward and outward traffic...??? | |
I need to apply the "&" operator in where clause... the code is: [CODE]com = new OleDbCommand("select Accesstype from FTPSitesAuthorisation WHERE (SiteName = @site_name) & (UserName=@user_name)", conn); [/CODE] It does not give any error,,, but the result is not correct , the "and" operation is not applied... please guide , … | |
I am using a select statement for selecting certain rows of database table. the statement returns multiple rows. please guide me how can i store all the rows so that they can be used latter for comparison. each row contains one variable of type string... I was using string user … | |
I want to update some record in access data base, but the update command is not updating the table... Insertiion is working fine.. the code is: com = new OleDbCommand("UPDATE ServerAuthorisation SET Permissions=@permission WHERE UserName=@user_name", conn); conn.Open(); if (conn.State == ConnectionState.Open) { com.Parameters.Add("@user_name", OleDbType.Char, 100); com.Parameters.Add("@permission", OleDbType.Char, 100); com.Parameters["@user_name"].Value = … | |
I have written the following code for creating a file and it works fine... string dirAddress = "C:\\FTPTrace\\" + ipHeader.DestinationAddress.ToString() + ".txt"; System.IO.StreamWriter logfile = new StreamWriter(dirAddress,true); Now I want to add ip address of the local machine in the path... as... string dirAddress = "\\192.168.15.96\\C:\\FTPTrace\\" + ipHeader.DestinationAddress.ToString() + ".txt"; … | |
I want to parse the IP packet using SharpPcap and PacketDotNet functions.. The code is: private static void device_OnPacketArrival(object sender, CaptureEventArgs e) { var p = PacketDotNet.Packet.ParsePacket(e.Packet.LinkLayerType, e.Packet.Data); if (p != null) { var tcp = PacketDotNet.TcpPacket.GetEncapsulated(p); if (tcp != null) { Console.WriteLine(tcp.SourcePort); Console.WriteLine(tcp.DestinationPort); } } } where the functions … | |
I want to create a file on a remote machine, and write to that file. What are the ways of doing so.. I have searched, but couldn't get any thing relevant... if I give the ip address of the machine in the path of file., will it work?? kindly help... | |
I want to log communication FTP server and clients.. All communication can be logged by monitoring the FTP packets.. But How can i get the host name of the FTP site , which the client sends to server in the start , in order to log in to that particular … | |
I need to create a file with a name of IP address: The code is: string dirAddress = "C:\\FTPTrace\\" + ipHeader.DestinationAddress.ToString() + ".txt"; System.IO.StreamWriter logfile = new StreamWriter(dirAddress,true); It works fine.. But i also want to include current date in the file name... The code is : string dirAddress = … | |
I want to make a sniffer that can capture all inward and outward traffic... I am using the following code, but it captures only inward traffic.. if (!bContinueCapturing) { bContinueCapturing = true; mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); //Bind the socket to the selected IP address mainSocket.Bind(new IPEndPoint(IPAddress.Parse(strIP), 0)); mainSocket.SetSocketOption(SocketOptionLevel.IP, … | |
I want to retrieve information from the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\27F43CBD97D1DB04CA142624E98D6717\features But the values of this registry key are encrypted.. any one know how to decrypt them? example : value = F_FTP_COMMON value data = ZC]++I3{!@.!lfp,?=DHHvyyfa8fj@(6d@fnEE32eWl_`4R(h@AZId-+a?DW | |
I need to decrypt the files that contain information about the private keys.. Can any one guide what is their encryption method... These files are present at the following location... All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys Plzzz Help... | |
I want to decrypt the bootmgr file on my system.. I want to use the unprotect() method... I need to know that is it possible to do it with unprotect(), being the administrator of the machine.. And what should be given as the entropy value? Should the entropy value be … | |
The protect and unprotect functions in system.security.cryptography, use the symmetric key to encrypt... I need to know that is this the same symmetric key that is used by windows to encrypt the private key files...? ? ? | |
I am searching for the master key, that is used for encrypting the private key files.. The master key is present in the folder: RootDirectory \Documents and Settings\< username >\Application Data\Microsoft\Protect But the "protect" folder is not present on my machine... plzzz guide me why is this so... as all … | |
I am using the function CryptProtectData() to generate an encryption key... I have made a DATA_BLOB structure, and made two instances of it. The code is as follows: private struct DATA_BLOB { public int cbData; public IntPtr pbData; } DATA_BLOB pDataIn; pDataIn.cbData = 2; pDataIn.pbData = Marshal.StringToHGlobalUni("saneeha"); DATA_BLOB pdataOut; CryptProtectData(pDataIn,"sasa",null,(IntPtr)null,null,CryptProtectFlags.CRYPTPROTECT_LOCAL_MACHINE,pdataOut); … | |
I am using the function "CryptProtectData" , which takes as the first argument, the "CRYPT_INTEGER_BLOB" structure, which is defined as follows: typedef struct _CRYPTOAPI_BLOB { DWORD cbData; BYTE *pbData; } where pbData is the pointer to the data buffer.. I need to know that what is meant by data buffer, … | |
I need to find, that , encryption keys related to which application are present in the following file...? C:\Windows\System32\7B296FB0-376B-497e-B012-9C450E1B7327-2P-0 plzzz help.... | |
I am using ssl based application. When I create and exchange the certificate , two registry keys are generated... 1) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\MY\Certificates I know that this key contains the subkeys corresponding to the certificate hashes, and the blob value contains information about the certificate... 2) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\MY\Keys Kindly guide me that what … | |
I need to get the public key associated with a certificate.. The code which I found was as follows... // The path to the certificate. string Certificate = "Certificate.cer"; // Load the certificate into an X509Certificate object. X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate); // Get the value. byte[] results = cert.GetPublicKey(); Now … | |
plz guide me how can I view the content of a memory stream in visual studio output window....? I know the encoding is utf-8.. plz help... | |
I am reading data from packets and i need to store the data in a tree format in a file... Is it possible ? what approach I should use? |
The End.