|
|
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?!
|
|
|
|
|
If you know the window's title and class name then you can use the FindWindow() API.
You can get this information with the Spy++ utility I believe.
If you use CreateProcess() to start the app, you'll get a process ID for the new process.
Using the EnumWindows() API, you can enumerate the windows on the screen and for each top level
window, use the GetWindowThreadProcessId() API and compare the process ID to the one obtained
by CreateProcess() until you find a match.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
In the continue with Mark Salsbery after run your exe you can use of for get handle
HWND hWnd = ::FindWindow("Notepad", NULL);
::SendMessage(hWnd,WM_CLOSE,0,0);
or you can use of EnumDesktopWindows() for enumerates all windows on a desktop with a handle for each window .
|
|
|
|
|
WhiteSky wrote: HWND hWnd = ::FindWindow("Notepad", NULL); //find notepad
This will work in a perfect world, but should be considered very dangerous. FindWindow() calls EnumWindows() , and for each top-level window handle found, it calls GetWindowText() , which just sends a WM_GETTEXT message to the window handle. If the thread that owns the handle is blocked, the call to SendMessage() will also block until that thread is freed up. In the event this never happens, FindWindow() will block forever, and your application will...
"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'd be more worried about the effects on such code on innocent applications that just happen to be titled "Notepad" but are not the desired target.
Steve
|
|
|
|
|
Thank you for your advice
|
|
|
|