blacklist programs

Results 1 to 8 of 8
  1. #1
    Valued Member Marwan1 is offline
    MemberRank
    Jun 2011 Join Date
    127Posts

    blacklist programs

    Hi all,
    how to make Blacklist programs
    not by FindewindowA
    for example i have notepad.exe running
    so if i run an anthor program aaa.exe i want the notepad.exe close
    even if the aaa.exe name has been changed
    thanx


  2. #2
    Software Person TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,252Posts

    Re: blacklist programs

    So, you want to be able to identify applications currently being run [i.e. are in the user's process list] by something more reliable than name.
    Okay.

    When obtaining the list of processes, you are able to iterate through them and get the originating file path of a single process. Use that to be able to identify any information you wish about that file [i.e. the binary application being run as a process].

    For example, you could get the MD5 hash of that file and compare it to an array that is filled with blacklisted MD5 hashes [of applications]. This is only one of numerous types of file identifiers.

  3. #3
    Valued Member Marwan1 is offline
    MemberRank
    Jun 2011 Join Date
    127Posts

    Re: blacklist programs

    MD5 wont help ... it will cahnge when name changed
    so i want anthor way to block the program function

  4. #4
    Enthusiast Erestian is offline
    MemberRank
    Nov 2010 Join Date
    Hanceville, ALLocation
    34Posts

    Re: blacklist programs

    Correct me if I'm wrong, but I was pretty sure that the MD5 hash of a file was on the file's data, not it's name.

  5. #5
    Valued Member Marwan1 is offline
    MemberRank
    Jun 2011 Join Date
    127Posts

    Re: blacklist programs

    MD5 change if u change the name...

  6. #6
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: blacklist programs

    Yes, but if you don't take an MD5 hash of the filename, but of its data, its actual content, it will be the same.

  7. #7
    Software Person TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,252Posts

    Re: blacklist programs

    Quote Originally Posted by EliteGM View Post
    Yes, but if you don't take an MD5 hash of the filename, but of its data, its actual content, it will be the same.
    Correct. It will not change if you change the filename.

  8. #8
    Software Person TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,252Posts

    Re: blacklist programs

    Quote Originally Posted by Rules
    5. Don't just dump your problem and hope we sort it out for you!
    Coders section is not a general 'I need something fixed so lets ask you guys to fix it for me' forum! If you have a specific problem, for instance a typecast that's giving you trouble or a regex that's not working correctly, feel free to ask. But do not dump here 50 lines of code with the message 'its not working, fix please', or expect us to write your scripts for you!
    That code is C++ and does not 'come with a full project'. It's a function you implement in to your own project.



Advertisement