Closed Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: SecurityAudit

  1. #11
    vinay is offline Newbie
    Join Date
    Dec 2007
    Posts
    17
    Rep Power
    0
    i think the InStr function can be used to do the search...It could be coupled up with LCase to convert the strings being compared in lowercase....What is ur opinion about it???

    The below link is helpful in explaining about the function and it's uses...
    Visual Basic InStr

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Ok if you use :

    Code:
    InStr("String", "ri") <> 0
    It will return a true value, but keep in mind that this is case-sensitive therefore you should use UCase() or LCase()

    Now all you need is to make a loop and this should do the following:

    Selects a line from the listbox (one after each other)
    Save the selected text into a variable (so this will not effect the actual program name in the list box)
    Convert the variable into lower or upper case and search for the program name

    This eventually will take some time because this loop has to be repeated for all the authorized programs.

    If you have any problems in doing this, I can help as I have done this myself before posting (to test if this will work)

  4. #13
    vinay is offline Newbie
    Join Date
    Dec 2007
    Posts
    17
    Rep Power
    0
    will try the logic u mentioned...if ne probs will revert back to u...thanks a lot

  5. #14
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    You are welcome. If you are new to VB you will have only one problem which is simple to solve, besides that it's actually pretty simple.

  6. #15
    vinay is offline Newbie
    Join Date
    Dec 2007
    Posts
    17
    Rep Power
    0

    Network Problem

    hey computermaster...got a prob with the project...i have to do the same scan over a network i.e. the software would run on a server and will scan the computers in the network using their ip address....ne idea how to do it?

  7. #16
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Well it's going to be a problem... much more complicated.. because you will need a server (that will receive the results) and a client (which will run on the local computer)

  8. #17
    vinay is offline Newbie
    Join Date
    Dec 2007
    Posts
    17
    Rep Power
    0
    i have absolutely no idea how to do it....If u able to get me the code for it then it's the best thing...
    Then the problem again is of creating a log file which keeps track of the details of the scan for each computer over the network via the ip address...I have no idea how to go about that too....
    Could u please take out some of ur time to solve the problem and provide the code for this....

    Thanks

  9. #18
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Hehe that is a little too complicated to 'take out some of my time' because it will take too much time for me to code it for you and I don't have all that time. But don't worry first you can create the client (the one that will scan the computer locally) afterwards think about the server and how to forward the data to the server.

    I will still be able to help you with some snippets...

  10. #19
    vinay is offline Newbie
    Join Date
    Dec 2007
    Posts
    17
    Rep Power
    0
    I have almost finished with the project on a stand alone pc...i dont have ms acess or any db installed on my pc right now....
    So i have considered some of the softwares as authorized,stored them in an array and comapred with the rest of the softwares installed in the computer...it works quite well...
    The code now generates a log file which lists the unauthorised software....
    m working on a module that will be allowing the user to add,update or delete the names of authorised software from the database...

    Would like to knw ur comments on the present code..

    here is the updated code
    Attached Files Attached Files

  11. #20
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    The code seems good although it doesn't display any alerts yet and the code is poorly documented.

Closed Thread
Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts