Type: Posts; User: j0nas
Search took 0.10 seconds.
January 8th, 2011, 05:52 PM
Use CreateFile(\\.\PhysicalDrive0...)... See KB: http://support.microsoft.com/kb/100027
February 1st, 2009, 05:25 PM
Try searching on fuzzy string matching... Wikipedia gives you this:
January 30th, 2009, 05:18 PM
A bit off-topic to ask about audio here... Have search for audio/sound/recording on www.codeguru.com and www.codeproject.com (there are several good articles) ... look at waveInOpen for instance
January 17th, 2009, 06:23 PM
op = stdin looks like an bug to me... It should probably be ip = stdin
The string compares are needed to allow "in_file_name" and "out_file_name" to support standard input, output and stderr...
January 14th, 2009, 06:13 PM
sizeof buf -1 is due to your logic where you zero-terminate the string using the return value from recv(). Think what would happened if your buffer is 100 bytes and you specify 100 bytes to read,...
January 14th, 2009, 05:47 PM
It depends on the hook type. Some hooks can actually reside in an EXE, but most of them require a DLL.
You can also have a thread specific hook in your own app, ie the thread id must belong to the...
January 11th, 2009, 07:07 PM
Your recv() call in the server is wrong.
sizeof buff2 - 1
January 9th, 2009, 09:42 AM
Use popen() :
January 9th, 2009, 09:33 AM
You first need to know what kind of proxy server you need to implement. What kind of application will it proxy? If it is purely for HTTP, then you should look into a "web proxy". If it more...
December 24th, 2008, 03:12 AM
Use the TAP driver implemented by OpenVPN. Use some tcp tunnel (ssh or your own) as a tunnel. Implement the tunnel server end on your Linux box, together with a TAP kernel driver. This is basically a...
January 22nd, 2008, 05:21 PM
What kind of uncompressed audio is it? (you need to know number of samples, channels etc)... make sure it is PCM data
Use waveOutOpen with the WAVEFORMATEX and format tag WAVE_FORMAT_PCM
January 22nd, 2008, 04:57 PM
1. Don't send the whole WAVEHDR
- Send WAVEHDR::lpData and WAVEHDR::dwBytesRecorded
(dwBytesRecorded will probably be the same except for last sample)
2. Include a seqence...
January 20th, 2008, 05:37 PM
dglienna solution's is very a pragmatic one. Other solutions probably need lots of development, for instance writing a web or socks proxy with user auth etc.
Maybe you can find a free web proxy...
January 19th, 2008, 04:55 PM
Well, it's only security issue if you do TCP bind to ANY address. If you bind to a specific address, no other TCP server can "steal" that specific address+port.
January 9th, 2008, 01:48 AM
Yeah... You are of course right. I was thinking about the last step, so a quick fix:
for (i = 0; i < header->caplen; i++)
if (pkt_data[i] == searchStr &&
January 8th, 2008, 03:12 PM
Cast pkt_data to (const char *)
strncmp returns 0 upon match... Hmm.. I see a bug in my code now. Re-write compare statement as:
if (header->caplen >= searchStrLen &&
January 7th, 2008, 05:27 PM
Remember that if pkt_data is a raw PCAP packet (wireshark), you'll get the ethernet frame etc... So, if you for instance is only interested in the TCP data (without headers), you must "parse" the...
December 23rd, 2007, 05:04 PM
About Handle.exe etc...
You should probably not close handles with it except in rare conditions, cause it will mess with the state of the application which use the handle in question.
December 23rd, 2007, 04:57 PM
For above, try:
handle -c 190 -p 3136
December 23rd, 2007, 04:31 AM
You can use the free utility Handle to list/enum all handles (like opened file objects).
For many years ago, I posted a question about something like this:
Enum HANDLEs for current process...
December 22nd, 2007, 06:45 PM
December 18th, 2007, 05:08 PM
Do you have control over the server side app? In that case, I would suggest that the server pass back a cookie that the client return for each request. The cookie is a timestamp with a valid time...
December 18th, 2007, 04:59 PM
Try to separate the UI and network stuff from each other. It is a bad idea to use network calls directly in Windows Form code. Add one or two abstraction layers... If you for instance want to...
December 18th, 2007, 04:23 PM
(Make sure ReadFile returns TRUE)
So what does szUnicode contain?
Did you write the sting to the file yourself (from your program)? If the file/content was created with an editor, you should...
December 16th, 2007, 01:23 PM
From .NET Framework 2.0 or higher you can use Data Protection API (DPAPI) in Windows. It encrypts secrets based on currently logged on user, so the security is as good as it gets in Windows.
Click Here to Expand Forum to Full Width