The Exploit Database

The Exploit Database is an online archive of exploits and vulnerable software. It is a great resource for testers, vulnerability researchers, security addicts and developers.
Check it: http://www.exploit-db.com

How to remove the “No Valid Subscription” message on Proxmox

Proxmox 3.1 has implemented a new repository setup, as described in my recent blog post.

Each time you log into Proxmox 3.1 a dialogue box pops up with the message:

You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

One way to remove the message is to purchase a subscription from the Proxmox team. Remember that paying subscriptions keeps the development of Proxmox progressing. For the recent release, the subscription cost has been heavily reduced and is more affordable than ever.

The fact of the matter is, I started using Proxmox as a free and open source tool and expected it to stay that way. Had I known a subscription element would have been introduced, I would likely have chosen another toolset. As it is, I am too invested in Proxmox (time-wise) and changing to another technology is simply out of the question at this point. This brings me onto the other method; make a slight change to the code to remove the dialogue box from appearing. This is allowed under the License (aGPLv3) used for Proxmox however future updates may break your code and you may have to re-apply it or apply a different change.

You will need SSH access to the Proxmox host with the required access to edit the pvemanagerlib.js file.

First, take a backup of the file:

cp /usr/share/pve-manager/ext4/pvemanagerlib.js /usr/share/pve-manager/ext4/pvemanagerlib.js_BKP

Then open the file using a text editor, vi for example.

vi /usr/share/pve-manager/ext4/pvemanagerlib.js

Currently on line 450 of the file, however it may change with future updates, there is a line similar to below;

if (data.status !== ‘Active’) {

This line is doing the check to see if your subscription status is not ‘Active’. This needs to be changed to return false to stop the subscription message from being shown.

if (false) {

And that annoying little popup will be a thing of the past!

Note: You may need to clear your web browser cache after applying this code change.

Useful commands for Windows

How many users are logged on/connected to a server

 NET SESSION | FIND /C "\"

Who is logged on to a computer

NBTSTAT -a remotecomputer | FIND "<03>" | FIND /I /V "remotecomputer"

What is the full name for this login name

NET USER loginname /DOMAIN | FIND /I " name "
or
DSQUERY USER -samid *loginname* | DSGET USER -samid -display

When did someone last change his password

NET USER loginname /DOMAIN | FIND /I "Password last set"

How to reset someone’s password

NET USER loginname newpassword /DOMAIN

Is someone’s account locked

NET USER loginname /DOMAIN | FIND /I "Account active"

How to unlock a locked account

NET USER loginname /DOMAIN /ACTIVE:YES

or, if the password needs to be reset as well:

NET USER loginname newpassword /DOMAIN /ACTIVE:YES

List all domains and workgroups in the network

NET VIEW /DOMAIN

List all computers in the network

NET VIEW

List all domain controllers

2000 Server:
NETDOM QUERY /D:MyDomain DC
2003 Server:
DSQUERY Server

List all drivers on any PC

DRIVERQUERY /V /FO CSV > %ComputerName%.csv

List all printers on any PC

WMIC /Node:remote_PC Path Win32_Printer Get DeviceID

Disable Windows Firewall for domain only

NETSH Firewall Set OpMode Mode = DISABLE Profile = DOMAIN

Completely disable Windows Firewall

SC [ \Remote_computer ] Stop SharedAccess
SC [ \Remote_computer ] Config SharedAccess start= disabled

List all local administrators

 

NET LOCALGROUP Administrators

Delete a computer account

NETDOM /DOMAIN:MyDomain MEMBER \computer2Bdeleted /DELETE

Kannel parameters (escape codes)

%k the keyword in the SMS request (i.e., the first word in the SMS message)

%s next word from the SMS message, starting with the second one (i.e., the first word, the keyword, is not included); problematic characters for URLs are encoded (e.g., ’+’ becomes ’%2B’)

%S same as %s, but ’*’ is converted to ’~’ (useful when user enters a URL) and URL encoding isn’t done (all others do URL encode)

%r words not yet used by %s; e.g., if the message is «FOO BAR FOOBAR BAZ», and the has been one %s, %r will mean «FOOBAR BAZ»
%a all words of the SMS message, including the first
one, with spaces squeezed to one
%b the original SMS message, in a binary form
%t the time the message was sent, formatted as
«YYYY-MM-DD HH:MM», e.g., «1999-09-21
14:18»

Remove items from your Web History (Google accounts)

Remove items from your Web History

If you’d like to remove items from your Web History, just follow these steps:

  1. Visit your Web History page at google.com/history new window.
  2. Select any items you don’t want and click the Remove button. There’s also a link to Remove all Web History.

You can delete information from Web History using the remove feature, and it will be removed from the service.

However, as is common practice in the industry, and as outlined in the Google Privacy Policy, Google maintains a separate logs system for auditing purposes and to help us improve the quality of our services for users.

To learn more about removing items from your Web History, please read the Web History Privacy FAQ new window

Hide Skype’s DialPad in Mac

1. Use any PLIST editor.

2. Open Skype preference file (~/Library/Preferences/com.skype.skype.plist)

3. Change property DialpadOpen from YES to NO

4. Save the file.

This annoying dial pad is now always hidden and you can open it when needed.

 

Mac OSX Lion reverse scroll direction

Apple introduced OS X Lion yesterday but already one major complaint has been lodged against the Mac upgrade: Scrolling. Lion revolutionizes scrolling, literally reversing it. Now when you move your fingers up the trackpad, you scroll up the page instead of down, and vice versa.

To be fair, we understand the change: Apple’s trying to capitalize on the popularity of touch gestures and must believe that natural instinct would have us move our hand upward when wanting to move information in that direction. Unfortunately, the scroll bar has become almost an extension of our hands and we’re preprogrammed to do the opposite of this. Anything else feels like trying to write left-handed when you’re a rightie.

defaults write ~/Library/Preferences/.GlobalPreferences com.apple.swipescrolldirection -bool false

source

Free speller for Office 2011

You want to have a speller in your native language and Microsoft does provide it? Do not worry, the solution is simple.
What you will need is openoffice.org and it’s dictionary. Choose the dictionary that you prefer (our choice el_GR.dic) and the english speller (English Speller.proofingtool) from Office.

So with the help of el_GR.dic we created a Custom Greek Dictionary.dic for word and then converted English Speller.proofingtool to Greek Speller.proofingtool, changing only some parameters at info.plist.

Set the file Custom Greek Dictionary.dic as custom dictionary for Greek language at word Preferences and the Greek Speller.proofingtool copy it at /Applications/Microsoft Office 2011/Office/Shared Applications/Proofing tools.

Do you want to try our solution for Greek language? Download the following files and follow the above steps:

Custom Greek Dictionary.dic

Greek Speller.proofingtool.zip