Testing for C# vulnerabilities [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm a tester in a company that uses Java for all its (web)applications. One of the first things I do when testing a new feature or build is using a ridiculously large numbers on input fields.
If the programmer was sloppy, I get a stacktrace on the screen or in the log. For me this is a quick way to get a first impression about the quality.
But now my company has purchased a web application which is programmed in C#. My question is, can I use the same method as I do on Java apps? Are there other ways to quickly bring a C# app to its knees?

If a programmer converts text into a numeric value, and he did not validate the data nor catch any exceptions, an exception may appear to the end user. This is also true for C#.
However keep in mind you're just poking at the software this way. The programmer in question may have tried out "bad input" and wrapped the whole thing in a try { ... } catch {} block that just ignores the exception.
If the test fails (exception details appear) you can quickly conclude that the software has input validation flaws, but if no exception details appear, the quality of the product may be just as bad.

Related

simulate key in games [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a problem. I made some program with c# to help me in games. The logic is very simple. I used SendKey() method and low-level procs and they works correclly in software but doesn't work in games. any body has some idea?
Thank you all.
Avoiding Send keys is a pretty basic anti-cheat measure. And you did just explain why :D
Send Key only works if the other side is reacting to what the Windowing System is telling it. Games often use raw input, to have better reactiontimes and avoid everything Windows might do to the input. And this rather simply cheat/bot approach too.

How do you make a license for your programs? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
As the title says "How do you make a license for your programs?"
Do you use a plugin or do you make your own? I've looked the whole day for finding resulutions, but didnt found one yet.
I basically want a normal license for my program:
A textbox where you type your license "XXXX-XXXX-XXXX-XXXX"
Is it possible to make this yourself, or should i use a website for it? If i should use a website, which do you recomend then?
It is rather simple to implement a simple license yourself BUT it will no be very save.
Because C# is transformed into IL, everybody can decompile your code easily and work around your license checks. It is very hard to build a license mechanism in a save way, so you should resort to some existing, proven solution.

capture exceptions and write to log [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to set up something for logging that will capture any exception or such that my projects might run into that I haven't been able to anticipate with say a try{} catch{}.
The project I'm working on has too many possible places where something can happen, and I need to be able to capture those instances and write them out to a log that I can read and be made aware of problems.
I've seen references to log4net, but I'm not familiar enough with it to know if it can log any uncaught exceptions, or other errors.
Thank you.
Use ELMAH for logging your errors, follow this link as to implement it in winforms.

finding type of a dll functions ? how to see them? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a .net program that needs to communicate with a magnetic card reader/writer.
it has a DLL but i couldnt find its functions and the producer company told me that i have to use only with serial port commands.
In its manual, there is some commands that has been explained not clear enough ! I tried to use them but i couldn't get any response for non of commands.
Does any body has experience with card reader devices ?!
Is there any handshaking or initialization i need to set ?!
My card reader model is : Skankyo 6940
As said Dennis asking a vendor and reading its docmentation is more productice and most accurate way you can approach to work with the library .
Alternatively you may think of using: DUMPBIN.EXE utility, to dump all export functions of that (presumably C) dll. I repeat,in this way is much harder then reading a documentation, but, yes, you can also find some "hidden gems".
Hope this helps.

IE error message: "This website has been reported as unsafe" [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have written a site in C# asp.net and I am running it of IIS7.5.
Site works perfectly well with other browser than IE9 and IE10. In these browsers i get this error message:
http://imageshack.us/photo/my-images/16/unsafefilterss.png/
The site is http://filterss.net
I am kinda at a loss and I do not really know what I need to change in my programming to make this warning go away. Anyone has any experience with this error?
The obvious question is: "Have i programmed inn malicious software on my site?", No, i have not. Can my programming be exploited? well, yes i would think so, since there is no 100% safe way of coding.
Is there then any concrete reason for this message to appear? Anything that i can change in my code so that it will go away?
The only thing i can think of at the moment is that you have torrents in your meta keywords tag

Categories