Technology and troubleshooting.

Monday, February 29, 2016

Batch and VB Script to Run application as Administrator Privileges in user login

Batch and VB Script to Run application as Administrator Privileges in user login

This tutorial describes How to run application as administrator privileges in user login.

My Scenario:- One of our staff need Yahoo messenger but Yahoo messenger is working in proxy(Squid) It did so many troubleshooting in squid and exclude yahoo sites yahoo sites in proxy and Windows group policy but none of them is not helped me.

Finally I found a key Yahoo Messenger is start working in administrator Privileges in user mode.

 Yahoo! Messenger(Shortcut)->Right Click->Run as->Administrator Credentials 

The above stuff is resolved my issue I want to automate the process because I am interested to went user place login Yahoo messenger every time.

So I want to automate the process using Batch and VB script.

Here is script:-

Batch script save as .bat Example:- Yahoo.bat 

Note:- Save the Yahoo.bat file C:\ or D:\ Drive.

@ECHO OFF
cd c:\
cd "C:\Program Files\Yahoo!\Messenger"
start YahooMessenger.exe

 VB script save as .vbs Example:- Yahoo.vbs

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "runas /user:administrator C:\Yahoo.bat"
WScript.Sleep 100
WshShell.SendKeys "YOUR Administrator Password" 'send password 
WshShell.SendKeys "{ENTER}"  
WScript.Sleep 100
 

Note:- User can easily gain administrator password by click and Edit the Yahoo.vbs file for Security reasons Convert the .vbs file into Exe by using Vbs To Exe Converter


Vbs To Exe Converter




 
 




 

Now Right Click the Yahoo.exe send to -> Desktop (Create Shortcut).

Shortcut


I hope this information is useful for you. Please forgive any typos or incomplete sentences.
Share:

Monday, February 15, 2016

Information gathering with TheHarvester

Information gathering with TheHarvester

Information gathering with TheHarvester

The information gathering steps of  foot printing  and scanning are the most importance before hacking. My Goal is not encouraging you to use this tool for hacking purposes if your company like get news business this tool will really helpful to gathering the information about your client.

TheHarvester has been developed in Python by Christian Martorella. It is a tool which provides us information of about e-mail accounts, user names and hostnames/subdomains from different public Data sources like search engines (google, googleCSE, bing, bingapi, pgp,linkedin, google-profiles, people123, jigsaw,twitter, googleplus, all).

This tool is intended to help Penetration testers in the early stages of the penetration test in order to understand the customer footprint on the Internet. It is also useful for anyone that wants to know what an attacker can see about their organization.

TheHarvester supported are:-
  • Time delays between request
  • All sources search
  • Virtual host verifier
  • Active enumeration (DNS enumeration, Reverse lookups, TLD expansion)
  • Integration with SHODAN computer database, to get the open ports and banners
  • Save to XML and HTML
  • Basic graph with stats
  • New sources
 Lets go to the tutorial:-

If your are using Kali Linux or Backtrack TheHarvester is Pre-installed software 

In case, if it is not available in your distribution like Centos, Ubuntu or Fedora, than you can easily download it from TheHarvester, simply download it and extract it.

Provide execute permission to the theHarvester.py by

 [root@Techlanda ~]#chmod 755 theHavester.py

After getting in to that, simply run ./theharvester, it will display version and other option that can be used with this tool with detailed description.

 Demonstrative Purpose I used Kali

Distributor ID: Kali
Description: Kali GNU/Linux 2.0
Release: 2.0
Codename: sana
 

Domain used:- invensis.net


TheHarvester Syntax:-

[root@Techlanda ~]:~# theharvester --help
*******************************************************************
* *
* | |_| |__ ___ /\ /\__ _ _ ____ _____ ___| |_ ___ _ __ *
* | __| '_ \ / _ \ / /_/ / _` | '__\ \ / / _ \/ __| __/ _ \ '__| *
* | |_| | | | __/ / __ / (_| | | \ V / __/\__ \ || __/ | *
* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *
* *
* TheHarvester Ver. 2.6 *
* Coded by Christian Martorella *
* Edge-Security Research *
* cmartorella@edge-security.com *
*******************************************************************


Usage: theharvester options

-d: Domain to search or company name
-b: data source: google, googleCSE, bing, bingapi, pgp
linkedin, google-profiles, people123, jigsaw,
twitter, googleplus, all

-s: Start in result number X (default: 0)
-v: Verify host name via dns resolution and search for virtual hosts
-f: Save the results into an HTML and XML file
-n: Perform a DNS reverse query on all ranges discovered
-c: Perform a DNS brute force for the domain name
-t: Perform a DNS TLD expansion discovery
-e: Use this DNS server
-l: Limit the number of results to work with(bing goes from 50 to 50 results,
-h: use SHODAN database to query discovered hosts
google 100 to 100, and pgp doesn't use this option)

Examples:
theharvester -d microsoft.com -l 500 -b google
theharvester -d microsoft.com -b pgp
theharvester -d microsoft -l 200 -b linkedin
theharvester -d apple.com -b googleCSE -l 500 -s 300

 


TheHarvester Command:-

 [root@Techlanda ~]:~# theharvester -d invensis.net -b google

Output:-

TheHarvester




















 [root@Techlanda ~]:~# theharvester -d invensis.net -b all

This command will collect the information from multiple search engines supported by the specific version of theHarvester.


This command save the result in html format.

 [root@Techlanda ~]:~# theharvester -d invensis.net -b google -f techlanda.html


Output:-



TheHarvester





















I hope this information is useful for you. Please forgive any typos or incomplete sentences.
Share:

Thursday, February 11, 2016

How to Fix - Cannot open the Outlook window. Invalid XML, the view cannot be loaded


How to Fix - Cannot open the Outlook window. Invalid XML, the view cannot be loaded



while launching Outlook 2007 or 2010, you receive the following error message:

Cannot start Microsoft Outlook. Cannot open the Outlook window. Invalid XML, the view cannot be loaded.

 Cannot open the Outlook window. Invalid XML, the view cannot be loaded






To fix this error, run the following command from the Run box

Outlook.exe /ResetNavPane

 Now, try to open your outlook surely. outlook will start working.

I hope this information is useful for you. Please forgive any typos or incomplete sentences.

 

 

Share:

Contributors

Popular Posts