Jump to content

Search the Community

Showing results for tags 'c\# registry watcher'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Informatii generale
    • Anunturi importante
    • Bine ai venit
    • Proiecte RST
  • Sectiunea tehnica
    • Exploituri
    • Challenges (CTF)
    • Bug Bounty
    • Programare
    • Securitate web
    • Reverse engineering & exploit development
    • Mobile security
    • Sisteme de operare si discutii hardware
    • Electronica
    • Wireless Pentesting
    • Black SEO & monetizare
  • Tutoriale
    • Tutoriale in romana
    • Tutoriale in engleza
    • Tutoriale video
  • Programe
    • Programe hacking
    • Programe securitate
    • Programe utile
    • Free stuff
  • Discutii generale
    • RST Market
    • Off-topic
    • Discutii incepatori
    • Stiri securitate
    • Linkuri
    • Cosul de gunoi
  • Club Test's Topics
  • Clubul saraciei absolute's Topics
  • Chernobyl Hackers's Topics
  • Programming & Fun's Jokes / Funny pictures (programming related!)
  • Programming & Fun's Programming
  • Programming & Fun's Programming challenges
  • Bani pă net's Topics
  • Cumparaturi online's Topics
  • Web Development's Forum
  • 3D Print's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber


Skype


Location


Interests


Occupation


Interests


Biography


Location

Found 1 result

  1. Salut , am gasit acest cod pe net si nu inteleg de ce se inchide executabilul imediat dupa ce il deschid , intentia mea este sa monitorizez HKEY_USERS\SID\Software\Yahoo\pager\profiles\ID\Custom Msgs 1_W. In fisierul reg_mon.cfg este o singura linie : idul meu. Folosesc Microsoft Visual Studio 2010 asta este codu : namespace WmiExample { using System; using System.Management; using System.Security.Principal; using System.IO; public class WmiChangeEventTester { public WmiChangeEventTester() { try { string a; string b; a = Environment.UserName; b = Environment.MachineName; WindowsIdentity identity = WindowsIdentity.GetCurrent(); string filePath = @"reg_mon.cfg"; string line; StreamReader file = null; file = new StreamReader(filePath); line = file.ReadLine(); WqlEventQuery query = new WqlEventQuery( "SELECT * FROM RegistryValueChangeEvent WHERE " + "Hive = 'HKEY_USERS'" + @"AND KeyPath = '" + identity.User + "\\Software\\Yahoo\\pager\\profiles\\" + line + "\\Custom Msgs' AND ValueName='1_W'"); ManagementEventWatcher watcher = new ManagementEventWatcher(query); Console.WriteLine("Waiting for an event..."); Console.WriteLine("AND KeyPath = '"+ identity.User +"\\Software\\Yahoo\\pager\\profiles\\"+ line +"\\Custom Msgs' AND ValueName='1_W'"); watcher.EventArrived += new EventArrivedEventHandler(HandleEvent); watcher.Start(); System.Threading.Thread.Sleep(100000000); watcher.Stop(); } catch (ManagementException managementException) { Console.WriteLine("An error occurred: " + managementException.Message); } } private void HandleEvent(object sender, EventArrivedEventArgs e) { Console.WriteLine("Received an event."); } public static void Main() { WmiChangeEventTester receiveEvent = new WmiChangeEventTester(); } } } Nu am facut nici un fel de curs,am citit doar ceva pagini de pe net si GOOGLE foarte mult.As fi recunoscator daca m-ar ajuta cineva
×
×
  • Create New...