|
Hi, Dave how about technology such as third party tool[^] that use to crack or reset password for windows? Why they can reset database but could not change the password if the we know the place where to store the password?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
You wil note that that utility you pointed out does NOT run under Windows. Since Windows is not running, the security around the SAM database is also not running. If you we're to attempt to write to the SAM database as a user you would get an Access Denied failure. Reading/Wrighting the SAM database is restricted to the System and Administrators only.
Without running Windows, read/writing the SAM database is just a matter of reading and writing files, if you know the proper format of the file, of course. I've got a UNIX boot CD that does the same thing. No, not on a UNIX system, but will let you edit the registry and clear/change passwords of a Windows XP/NT/2000/2003 machine. All you need is a file system driver that understands NTFS 5 and the proper know-how for reading and writing the registry WITHOUT using registry functions (again, because there is no Windows to do it for you!)
For a project like this, you cannot use C#, Visual Basic, J#, or any other .NET managed language. You can only use raw C++, or any other language that doesn't need a runtime or managed environment.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I apologize for not pointing out that i understood quite well that it is a long shot.
Providing that functionality to a developer would cause a major breach in security for the operating system. Anyone working as a programmer for a company that has limited rights to their network could simply write an application to get the admin password.
I am just trying to write a simple application for myself and I was not thinking beyond the scope of my project and of the reasons as to why Microsoft would not supply that kind of functionality. I appreciate the response, I will have to come up with a better solution to project now.
Thanks,
Xadeu
|
|
|
|
|
See this[^]...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I’m trying to make a peer2peer program which can upload/download several files at the time.
But how do I know witch ports to use???
I use one port to send information for commands, file size, and so on….. port 7070.
The sender program can use any port but the receiver program may not be able to use that port.
How do i resolve that problem?????
And remember, there could be 3 or 5 files to send/receive.
And how do i deal with firewalls and routers???
Please help.
|
|
|
|
|
First of all, Don't Panic
Basicly what you need to do is pretty simple.
First, decide on one port number (for instance 7070 you mentioned), now both peers listen on that port, and both peers know that they are both listening on that port.
When Peer A wants to send a file to Peer B, it creates a new socket (do not bind that socket to ANY port) and connects it to Peer B (by the known port).
Now- Peer B will receive a 'Connection Request', and creates a new socket to accept the new connection.
At this point, Peer A can send asorted information about the file it want to send like size, file name hash etc. and then begin to send the file.
Because this is all happening on different sockets than the listening ones, both peers can initiate any additional number of connection as you wish (well not any number of connections but a reasonable one )
That's it, note that Peer A can also connect and Request a file from Peer B, the possibilities are endless.
I can send you an example project i wrote with all this connection creation working,
i will post it with an article, but it will take some time as i'm on a tight schedule now and can't write the article now.
Let me know if you want the example.
Fade (Amit BS)
|
|
|
|
|
Thanks for the reply.
Any help would be great. You can send it too kim@web-tech.dk.
Hubbi
|
|
|
|
|
How to send emails using vb.net with out the need to run any email server program .. just like outlook or emailmanager ..?
please try to attach code with ur reply ..
thanx
لا اله الا الله محمد رسول الله
|
|
|
|
|
hi ...if u need more codes..pls visit at www.dotnetspider.com or send me ur email address
i will send u the sample code...
since i duno where to attach the smaple code here....
my email ----kumaran_kalidas@yahoo.com
kumar
|
|
|
|
|
thanx for replying .. thats my email ..
modern_night@hotmail.com
or
A4M@Gawab.com 2GB Capacity if the email was large u can use it ..
لا اله الا الله محمد رسول الله
|
|
|
|
|
Help I've tried many things to make a list box appear when I write something down
Example
I write an "A" and a list box appears
can anyone help me out?
|
|
|
|
|
Will you explain more about what you want?
Where are you going to press a key? (i.e. on a form, a textbox, etc.)
should the list box be created dynamically at runtime or it can be created in design time and just become visible when you press the key?
Do you mean some kind of shortcut for appearing a listbox?
|
|
|
|
|
hmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear
By bad for not being much specific first time
|
|
|
|
|
You still have to describe this better. Are you talking about showing a listbox while type typing in a RichTextBox? Something like IntelliSense in Visual Studio?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
First of all, there are two different questions here
1. How to cause the Listbox to become visible when i want to?
very self explenatory, there are two options:
a. create the list box in design-time, with the 'Visible' property set to 'False'
then, when you want it to become visible change the property
b. create the list box dynamically in run-time which i will not explaine here
there are a lot of articles describing this
2. How to "sense" that the somthing specific is being written ?
Well.... basically there is an event fired when a text in a textbox
is changed (there are also a lot of examples on handling events)
handle this event and check what has changed, you can keep a copy of
the content in the textbox, and when it changes compare both copies,
you can scan for the last changed character backwards to see what is written,
there are many possibilities, pick one.
Hope this helps, you are being very vague
next time try explaining what you are trying to do, like "i'm trying the sense when someone is typing a url so i can highlight it".
ok ?
Fade (Amit BS)
|
|
|
|
|
yes thank you
i'm not being vague, I just didn't know how to explain it my bad
|
|
|
|
|
Hi i'm having problems here I made this code but after it finds and p I try to write more stuff but it gets stuck selecting the p. Can anyone help me out here with the codes?
Private Sub Timer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Try
RichTextBox1.SelectionStart = RichTextBox1.Find("p")
Dim SelectorFont As New Font(RichTextBox1.Font, FontStyle.Bold)
RichTextBox1.SelectionFont = SelectorFont
RichTextBox1.SelectionColor = RichTextBox1.SelectionColor.Black
Catch ex As Exception
End Try
|
|
|
|
|
Hi Rylogy!
i'm having problems here I made this code but after it finds and p I try to write more stuff but it gets stuck selecting the p.
You simply forgot to change the length of the selection using the SelectionLength property.
RichTextBox1.SelectionLength = "p".Length
You might also want to use a more generic approach right from the start by supporting strings with any length. A first prototype of a method might look like this:
Private Sub HighlightText(ByVal Highlight As String)
Dim NextPosition As Integer = 0
Do
NextPosition = RichTextBox1.Find(Highlight, NextPosition, _
RichTextBoxFinds.None)
If NextPosition > -1 Then
RichTextBox1.SelectionStart = NextPosition
RichTextBox1.SelectionLength = Highlight.Length
Dim SelectorFont As New Font(RichTextBox1.Font, _
FontStyle.Bold)
RichTextBox1.SelectionFont = SelectorFont
RichTextBox1.SelectionColor = Color.Black
NextPosition += Highlight.Length
Else
Exit Do
End If
Loop
End Sub
The next step would be to replace the hard-coded object RichTextBox1 with an object variable.
Best regards
Dennis
|
|
|
|
|
|
hmm
Private Sub HighlightText(ByVal Highlight As String)
what's that for?
|
|
|
|
|
|
I'm trying to find a safe way to put a delay of 4 seconds in my code in VB 6.0 (NOT .NET). This is the code I have:
Public Sub Wait()
i As Integer
Halt = 4
Dim LTime
LTime = Timer()
While Timer() - LTime < Halt
i = 1
Wend
End Sub
This works great except for one problem. If I am running a form, press a button that calls this function, and then close the form before this function is completed, the visual of the button is corrupted. Basically, when the draw window is called (IE with a form.show call), the button shows through to the background and saves that image at its interface. IE If I have a word doc behind it, close the form with wait in progress, and form.show the form, it will bleed through with the button with whatever text is in the box of the button. How do I fix this?
Thank you,
Red Sunday
-----------------
http://www.zachcalvert.com
|
|
|
|
|
Hi Red!
I'm trying to find a safe way to put a delay of 4 seconds in my code in VB 6.0 (NOT .NET).
First, don't use While...Wend to loop. Use a Do loop instead (see also How to Use Looping Structures in Visual Basic for Applications[^]). Second, don't use a loop at all. You can use Task-Manager to quickly find out that your loop will lead to 100% CPU usage. Use the API function Sleep instead.
Option Explicit
Public Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Integer)
Public Sub Wait()
Sleep 4000
End Sub
You can find more about Sleep and an API function called SetWaitableTimer (which might solve your re-draw problem) in the article How To Use SetWaitableTimer With Visual Basic[^].
Best regards
Dennis
|
|
|
|
|
depending on what you are trying to do, there are two main options:
1. Causing the Code to completly halt
can be done by using the Sleep method (i saw you got a got overview of it)
or by looping like you did
BUT - add a DoEvents() call inside the loop, this will allow the window to redraw
this approach of halting is not very safe to begin with, especially in VB6 that runs
EVERYTHING on a single thread.
you might want to try these two approachs:
2. Timer based halt.
Create a timer object, and set it to start timing you in the 'Wait' method
handle the timer's "Timer" event, in the hanlding sub
a. disable the timer
b. call a method to continue the operation
there are additional ways to achieve this, but i think this will get you going
Fade (Amit BS)
|
|
|
|