Browsed by
Category: Security

How to install Active Directory && Connect to AD using C#

How to install Active Directory && Connect to AD using C#

  using System; using System.DirectoryServices.AccountManagement; namespace AD1 { class Program { static void Main(string[] args) { ActiveDirectory ac = new ActiveDirectory(); Console.WriteLine(“Login : ” + ac.Login(“[email protected]”, “x”)); Console.WriteLine(“Search For eramax : ” + ac.Search(“eramax”)); Console.WriteLine(“Search For [email protected] : ” + ac.SearchByEmail(“[email protected]”)); Console.WriteLine(“Print All Users in AD” ); ac.GetAllUsers(); Console.ReadLine(); } } public class ActiveDirectory { private static string LDAPServerIP = “x.x.x.x”; private static string ADDomain = “domain.local”; private static string ADUsername = “[email protected]”; private static string ADPassword = “x”; public…

Read More Read More

My Tasks in Security checklist

My Tasks in Security checklist

Injections  (http://example.com/app/accountView?id=’ or ‘1’=’1) Broken Authentication and session managements XSS Insecure data object notations security misconfiguration Sensitive data exposures Missing Function Level Access Control CSRF Using components with known vulnerability unvalidate redirects and forwards HTTP header injection Clickjacking Directory listing user-agent Content spoofing Cross-domain AJAX request security headers Some S3 Buckets are world readable SPF/DMARC records subdomain takeover SSLv3 Padding Oracle RCE SSRF Username uniqueness same site sripting LFI/RFI