|
That's what I first thought until I reread your post (once again, I apparently can't read)
and noticed the PUBLICKEYBLOB type. You probably need to use SIMPLEBLOB since CryptDeriveKey
creates a session key, not a public key.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Wait. Try CryptExportKey with SIMPLEBLOB instead of PUBLICKEYBLOB
Sorry for the confusion!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I am using PUBLICKEYBLOB since this function allows mee to export the key with out the handle to a cryptographic key of the destination user
|
|
|
|
|
Right but I don't think that will work on a session key.
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
So What do I do for exporting the session key? I dont have the destination users CSP container or key
|
|
|
|
|
|
Need help to design a honeypot to attract the attackers and track their activities.I googel to find some sources but cudn't find any.
|
|
|
|
|
Do you have honey to put in said pot?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Don't you know honey attracts bears?!?
|
|
|
|
|
Does your intent a tools for increase security of network?
|
|
|
|
|
MFC may or may not be the best tool (likely not) to build a honeypot, but this depends on the kind of honeypot you are trying to build. Are you trying to build something to attract and track the activity of a so-called "blackhat"? Or something that basically is a spam-poisoning honeypot/spamtrap? Etc.
There are quite a few different kinds of honeypots available recently, so it should be rather easy to Google for something to look at and/or play around with.
Peace!
(I know this is a reply to the wrong post, but the parent vanished while I was composing my reply, and there is not even a "message deleted" line?)
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
I googled but i didnt get any sources and I want to track their activity.
|
|
|
|
|
Its an answer to me or to sender?;P
|
|
|
|
|
Yes I am planning to increase security of network and I want to attract the attackers and track them.
|
|
|
|
|
I was trying to to search about it but I can't search (but I must say a thing to you before use of them read a lot of articles about them they have preferences and defects)
|
|
|
|
|
I want to design a new honey pot but not to use the existing one.
|
|
|
|
|
I dont know why you got low votes but I give you 5 because I know your knowledge programming is very good
|
|
|
|
|
WhiteSky wrote: I dont know why you got low votes...
Probably because the OP was referring to this, but I replied otherwise. That's the price you pay for asking short, ambiguous questions.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I seen this in a PHP script the other day.
switch($base){<br />
case $a == 'a' || $b == 'd':<br />
break;<br />
}
I've never seen this before in C++ development, is it valid syntax?
I could have swore I tried it once in VC++ and it failed cause CASE requested a CONSTANT?
Is this in the ANSI C/C++ spec?
I'm finding the only constant in software development is change it self.
|
|
|
|
|
this works in PHP, because there isn't anything constant, if you would use variables in C++ an multiselection can occur.
So, i didn'd know any way to use code like this in C++.
|
|
|
|
|
I remember that some years ago I worked on a project and used:
switch($base){
case $a == 'a':
case $b == 'd':
{
make your things here
break
}
case $a == ... :
}
hope this helps...
PS: I've used that in C++ but in ms-dos, I suppose that the compiler still remember this syntax...
|
|
|
|
|
case expressions in C have to be integral constants.
|
|
|
|
|
I looked into the EBNF for C/C++ and it appears (from what I can tell) that is the case (np pun intended) for both languages and apparently C# as well?
I'm finding the only constant in software development is change it self.
|
|
|
|
|
I think C# lets you use a string variable in the switch, and string literals in the case statements. But C++ doesn't allow that.
|
|
|
|
|
Hello to all,
i want to start an executable prgm, by path, and want to get the hWnd of them.
like i write "notepad.exe" and then i want to get the hWnd of the executed window.
can someone help me?!
|
|
|
|