|
blackchaosv2 wrote: But I wanted this option to be there that it checks for the bytes to be the same on runtime. (For potential crackers)
..my first vector of attack would be using ILSpy or reflector, identifying the method that returns "true" on a successful login. What does "the same runtime" mean?
Calculate a hash over your bytes. When distributing, distribute the hash along. Calculate a new hash when you "fetch" your bytes - it should return the same value as the hash you already calculated and distributed. If there's no match, the bytes have been modified.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Sorry, I meant to say whenever someone executes the application and I hard-coded my login system into a class.
Let's say they reflected it and adjusted some property's with Reflector.
I want the application to detect this, whenever the user made any adjustments in the ASSEMBLY.
The function I posted works but I don't want to grab my class out of My.Resources. I want it to be in the project files itself.
|
|
|
|
|
blackchaosv2 wrote: I want the application to detect this
Like I said, generate a hash. You can Google for info how it works, or wait until somebody posts a relevant link or code.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
I am on my phone as for right now. I hope someone could link me once I am back.
|
|
|
|
|
blackchaosv2 wrote: I hope someone could link me once I am back.
..I suggest you take the time to research the topic and understand what you're doing. You can access the documentation[^] on your phone, and it includes a sample.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
how to send sms to mobile number useing ASP.NET code
|
|
|
|
|
Using a Gateway. I suggest you search a provider that turns emails into SMS, as it's the easiest interface.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Sending SMS to mobile is very simple.
Two ways to send sms.
1. Using any SMS gateway Service Provider. They will provide you [http post url] with querystring value. You need to generate the querystring value like to_mobile, message etc. The Gatewy will return a httpresponse Success/Fail along with other details.
2. Using Smpp Server
The Short Message Peer-to-Peer (SMPP) protocol is a telecommunications industry protocol for exchanging SMS messages between SMS peer entities such as short message service centers and/or External Short Messaging Entities.
Hope this helps.
cheers
|
|
|
|
|
ok i know i how to pase inside xml but im having a lil trouble with something
i have
<TestingPull>
<TestPull>
<code>TEST1</code>
<value>22</value>
</TestPull>
<TestPull>
<code>Test2</code>
<value>2893</value>
</TestPull>
<TestPull>
<code>Test3</code>
<value>1414</value>
</TestPull>
i want to be able to pull the value under "TestPull" "Code" test3 "/code"
For Each testpull As XElement In loadxml3...<TestPull>.<code> Dim testing1 As String = testpull.Element("value")
test1.Text = testing1
and nothing
i tried removing "code" and it only brings the "last value 1414"
any help to tell where "TEST2" is pick it its value ?
Thanks ...
|
|
|
|
|
jitforce2585 wrote: test1.Text = testing1
Is only going to show you one value, the last value which makes perfect sense with your statement,
jitforce2585 wrote: it only brings the "last value 1414"
Perhaps you meant to say,
test1.Text += testing1 & " ";
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
sorry i didnt get that
test1.text += testing1 & " ";
......................................
kinda lost
|
|
|
|
|
i need to pick up just the 2nd value which is "2893"
thats what i need
the += picks every node
all values together which is good but i need the specific "2893" value from the node "test2"
|
|
|
|
|
Any1 ???? Any Help will be really appreciated !
|
|
|
|
|
Considering you're not paying for support at all, what you're doing is considered very rude. People volunteer their time here and will answer whatever questions they can, when they can, not when you demand it.
|
|
|
|
|
im really sorry if you thought the i was doing some pressure or anything but if helps is needed by paying ill pay as well i dont mind to pay for help i appreciate everybody time ...
Thanks
|
|
|
|
|
jitforce2585 wrote: im really sorry if you thought the i was doing some pressure or anything but if helps is needed by paying ill pay as well i dont mind to pay for help i appreciate everybody time ...
Try and read his post again. Paying isn't an option, the site is "visited by volunteers". What you can do
- provide the best possible question, describing expected and actual behaviour
- a list of what you tried, so you don't get the same advice twice
- provide code, if applicable
- provide a complete error-message, if applicable
- be patient
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You are iterating the nodes and setting test1 to the content of element value each time through. Thus at the end of the loop you will have the last value. You need to check what the value of the code node is each time, and break out of the loop if it is equal to "Test2" , or whatever value you are interested in.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thank you Richard .. ill try that now
|
|
|
|
|
I need to know the name of the module (or assembly) which is currently executing my code.
ie, if application X has loaded DLL Y, and DLL Y calls a callback method in application X, I want to get the name of DLL Y.
I can figure out how to get the name of the MainModule for the current process, or even the list of modules that are loaded for the current process, but I can't figure out how to get the currently executing module from this .
|
|
|
|
|
|
Hmm... okay, I found Assembly.GetExecutingAssembly. Now I need to determine if I need the assembly name or the module name... what is the difference between a module and an assembly?
|
|
|
|
|
JoeRip wrote: what is the difference between a module and an assembly?
You're missing the question-icon, most forum-members will assume it's an answer to the original question and skip reading the post. To answer;
A module is a portable executable file, such as type.dll or application.exe, consisting of one or more classes and interfaces. There may be multiple namespaces contained in a single module, and a namespace may span multiple modules.
In short, an assembly can contain multiple modules (not to be confused with the VB.NET concept of a Module, which is a static class).
The code below shows an example of how to use the StackTrace-class, as proposed by another poster;
Dim mod = New System.Diagnostics.StackTrace().GetFrame(0).GetMethod()
Console.WriteLine (mod.Module)
Console.WriteLine (mod.Name)
Hope this helps a bit
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You probably don't need to use GetModule() or GetAssembly() methods
Try the FullName property...
|
|
|
|
|
Try GetType() .
Object.GetType() [^] should give you the appropriate results.
|
|
|
|
|
In that moment, it is again application X which is executing, not Dll Y.
I do not understand what are trying to achieve, i.e. the objective behind finding out that a function was called from Y.
In case that the callback method is an event handler, you could use the "sender " parameter to get more information on the origin.
Another possibility is the StackTrace .
|
|
|
|