|
This is a really dificult... perspective...
if the shape is solid(with enclosed points) then you can use a contracting concentric circle approach.
if you have a form of wrapping region... good luck(unless there is other structure to your data that you didn't include)
I recently did something similar (the convex polygon approach to making a vooroni tesselation(delanuy triagulation)).
you can alternativly use a line crossing approach, but this is also tricky.
it is best if the points are "ordered" either inpriciple, or by allowence, and then building up the polygon vertex(pair) by vertex(pair).
|
|
|
|
|
I have search almost every ware and to be honest I can't find on site that could answer my question.
Here is the situation, I have a .EXE, lets call it BOB.exe. BOB.exe has a portion of it's code when opened in a hex editor that is readable which leaves it open to be hacked. One think that it has is an IP that sometimes need to be changed by the administer. this app connects online but all this is relevant right now.
Now what I want to do is create a program with my own algorithms that can encrypt BOB.exe yet make BOB.exe executable by any user and at the same time when opened with a hex editor you can't understand anything in it because it will be encrypted.
So far from what I read i need to encrypt bit by bit of the program.
Please help, need this in ether C++ or C# or VB.Net
|
|
|
|
|
By what you describe it seems your problem is having strings in your exe that can be read by opening it with an hex editor.
If that's the case, then you can encrypt your strings using any encryption algorithm you like, and implement a decoding routine in your software. Each time you use an encrypted string, you must decode it. For example (C#):
string MyEncodedString = "#@SIRJI3893N";
MyTextBox.Text = DecodeString(MyEncodedString);
There are many encryption algorithms you can use. The simplest are based on XORing and byte swapping. They are very fast and easy to implement but must contain a fair number of operations to make it less easy to understand the encryption method.
If you use .NET, you can also have a look at the System.Security.Cryptographic namespace, which provides standard encryption algorithms. These are stronger but depend on an encryption/decryption key, which must be embedded in the exe and must be obfuscated in some way (XORing and swapping again or similar).
About .NET, you can also make your life easier by simply using an obfuscator which provides string encryption, like eazfuscator[^]. It will do all the work for you.
You should also be aware that there is no way to stop a determined attacker with enough patience and time: he will reverse engineer your decoding routine and apply it to your strings. That said, if you implement it properly, it will take time and sweat to do that.
2+2=5 for very large amounts of 2
(always loved that one hehe!)
|
|
|
|
|
Hello all,
first of all im sorry if its the wrong place for this question.
I am trying to decaptcha the following captcha:
[IMG]http://i26.tinypic.com/wrazt.png[/IMG]
what i am trying to do is removing the letters from the rest of the image. I am using Matlab atm but will do it in C# i think. its where i stucked, since all texture on background and letters are same, i can't find a proper way of doing it.
Im looking for your suggestions, thanks in advance
ps: its not a hacking project or so, never will be used for spamming or other purposes.
|
|
|
|
|
After blurring it and turning up the contrast a bit it suddenly looked much easier to do OCR on, so that may help
|
|
|
|
|
Write an algorithm that finds the largest blocks of white. Once you got that list, start coloring those blocks using the floodfill-algo. Lastly, drop all other colors
Some things Man was never meant to know. For everything else, there's Google.
|
|
|
|
|
that is probably the best captcha i've ever seen!
|
|
|
|
|
I know right..?
the only thing that could be better would be a well know object (instead of the grid) .. but yes brilliant.
|
|
|
|
|
do you found the solution ???
i have same issue
http://www.codeproject.com/Questions/127525/image-procesing-get-text-from-image.aspx
please help if you can
Palestine
|
|
|
|
|
hi everyone
i am doing work on image processing.So i am doing a project on color segmentation.
i have identified human skin color.but now i am trying to do labeling of
identified region.
can anyone explain me ,how can i do the labeling?
|
|
|
|
|
Use the skin color to find the face in the image, and get a bounding rectangle on the face pixels.
Get a large sample of images that exhibit more variation than you're likely to encounter in practice, and compile statistics on where in the bounding rectangle the features you're looking for generally appear.
To zero in on the features, you can use thresholding and mathematical morphology to simplify the complexity of the image.
|
|
|
|
|
As i have used skin color to find the face,so it's identified the hand too.
I have find the skin color and change it's color to black.
Now i want to make a rectangle on the detected area.ex-make a rectangle on hand,face.
As i want to make the rectangle,so,i think i need to find the x,y axis of detected area.
How can i detect the x,y axis of detected area
|
|
|
|
|
Your question isn't clear.
|
|
|
|
|
kabirbdboy wrote: As i want to make the rectangle,so,i think i need to find the x,y axis of detected area.
How can i detect the x,y axis of detected area
Areas don't have axes, coordinate systems do. What you primarily need are the x and y centroids, extents, possibly area and moments. OpenCV provides a function for calculating the moments of an area, check into it.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
my friend sent me a message and I have no idea how to decode it...he claims it's an extension of binary, but this only confuses me more...can anyone help?
363336313645323036383631373636332303734 3638363532303633364637353732363136373635 3230363136453634323037343638363532303646
i apologize if this is in the wrong forum, I tried my best to get it in the right place!
thanks in advance
|
|
|
|
|
I don't see any 9's in the string. Base 9?
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Haven't been able to crack it, but some observations:
1) The three parts are almost the same size - Are you sure you aren't missing a digit in the first part? The next observation also seems to suggest that the "3323" near the end should really be "33323"
2) With the exception of a few "45" and "46" occurrences, with with the change mentioned above, the entire message could be read as a series of 3x pairs (30-38). The fact that there are 45s and 46s, but no pairs 40-44, suggest that the 4x values might be separators of some kind. With those taken out, and the leading "3" in each pair removed, the remaining message might be further decoded into something readable.
|
|
|
|
|
I've seen stuff like that when hex files get loaded as binary. I think you're missing a "5" between the two consecutive "3"'s near the end of the first group, though.
Take pairs of characters as hex, translate to ASCII, take pairs of those characters as hex, and translate to ASCII. "can have the courage and the o".
|
|
|
|
|
Wow... What can I say, but...
3734363836313734323737333230363132
3037323635363136433643373932303633
36463646364332303633364636343635
|
|
|
|
|
Wow! You got it!!! Thanks so much!! I couldn't figure it out, I was so lost. This board is the best! I was racking my brain trying to figure this code out!
|
|
|
|
|
Hi,
I am developing a website to actually specific an incoming data (in a form of sms) and then validate it.
It is like some sms registering service that u see on television.
for example they will say something like "SMS < Name>space< NRIC>space< Message> to 7800 and be the first to win attractive prizes!"
I actually have a sms server/gateway that will receive the SMS send by the people and the data will be stored in the database
Some people might sms < Name>space< Message>space< NRIC> instead of < Name>space< NRIC>space< Message>
So, how can i keep a fix format and create an algorithms that will check that the message is in correct format?
For now, i have a database table that stores the keyword of each sms. For example, the keyword stored in the database is "Quiz".
and people will send an SMS with the text "Quiz NRIC answer"
Then i got a script to check the text make sure it tally with the keyword table.
But i cant allow it to check whether NRIC come first or the answer come first.
Sorry for the long message. But trying to explain as detailed as possible
|
|
|
|
|
Assuming NRIC stands for National Registration identity[^].
Do you want to allow users to send SMS in any format or a fixed format? I'd suggest to stick with a specific format something like <Name> space <NRIC> space <Message> . In such case, the following algorithm can be used.
ProcessMessage(Message)
Tokens = Split message with space
name = Token 0
nric = Token 1
message = Token 2
if ValidateName(name) = true and ValidateNric(nric) = true and ValidateMessage(message) = true then
do processing
else
inform user or do other actions
end If you want to have messages in any format, then algorithm like the below will work.
ProcessMessage(Message)
Tokens = Split message with space
for each token in tokens
if token is name then
name = token
else if token is nric then
nric = token
else
message = token
do processing You may need to modify this to handle exceptional situations.
|
|
|
|
|
Hi Navaneeth,
Really appreciate for your reply
Okay mostly likely i would want the messages to be in any format, because I want to create a generic system that allows the staff in the company to use my system if they need any form of SMS registration from people outside.
So i would like my staff to define their own sms format. So which is the best way i can do that?
For example, i am from the HR Department and would like to recruit more staff. So i want an SMS services that interested applicants can register. So the HR will define their sms format through my website.
<pre>Eg . <RECRUIT>space<NRIC>space<Name>space<PositionInterested>
</pre>
The staff defined the above format. So any incoming sms will be check against that format.
And also another department wants to give away lucky draw prizes thru sms as well, so they define their sms format
<pre>eg <LUCKY>space<Name>space<NRIC>space<DateOfBirth></pre>
So now there are 2 defined format. So whatever message that comes in will check whether which message it belongs to.
Okay so for now, do i store the whole strong of sms format into an sms table? If so, how do i check if which message fits which format?
Sorry for another long message
|
|
|
|
|
benjamin yap wrote: So i would like my staff to define their own sms format. So which is the best way i can do that?
In such cases you may need ask senders to prefix an identifier string with the SMS. So if it is recruitment SMS, format will be REC <RECRUIT> space <NRIC> space <Name> space <PositionInterested> . Here, REC is the identifier. You can look at the starting of message and this identifier will help you to determine the type of message. You can have a valid set of identifiers and validate against it.
When user defines their own SMS format, you need to build a regular-expression and keep that in the database. Once you identified the message type using the identifier, you can match the remaining text against the pattern and extract contents.
|
|
|
|
|
Hi Navaneeth,
once again thanks for your reply.
In such cases you may need ask senders to prefix an identifier string with the SMS. So if it is recruitment SMS, format will be REC <RECRUIT> space <NRIC> space <Name> space <PositionInterested>. Here, REC is the identifier. You can look at the starting of message and this identifier will help you to determine the type of message. You can have a valid set of identifiers and validate against it.
Currently this is what i have. I have a database table called "userapp". Below is the schema and the sample data
Userapp
userid(int)
keyword(varchar(50))
103 | Temp
132 | Quiz
150 | Lucky
For each keyword, i have a seperate for them called app_KEYWORD. So it will be app_Temp, app_Quiz, app_Lucky.
try {
ArrayList<String> array = new ArrayList<String>();
String firstword = null;
ResultSet rs1 = null;
ResultSet rs2 = null;
int id = 0;
String sql1 = "SELECT * from userapp";
String sql3 = null;
rs1 = db.SelectDB(sql1);
while (rs1.next()) {
array.add(rs1.getString("keyword"));
}
for (String i : array) {
sql3 = "SELECT * FROM SMSSERVER_IN WHERE TEXT LIKE '" + i + "%'";
ResultSet rs3 = db.SelectDB(sql3);
while (rs3.next()) {
out.print(i);
String sql4 = "Insert into app_" + i + "(originator,text)values(" + rs3.getString("originator") + ",'" + rs3.getString("text") + "')";
db.InsertDB(sql4);
}
String sql5 = "DELETE FROM SMSSERVER_IN WHERE TEXT LIKE'" + i + "%'";
db.DeleteDB(sql5);
}
} catch (Exception ex) {
}
Above is my code to check the identifier and then store it into the correct database.
So instead of storing just 1 keyword, I have to store the whole sms format in it as well?
Also, u mention building a regular expression, how can i create an interface that allows the user who define the format to have their own expression? What kind of form or fields should i display in order to build it.
Thanks
|
|
|
|