Tag: user

Enumeration

Enumerate user accounts through null sessions

There is a very useful program, in BackTrack you will find it pre-installed, named rpcclient. This tool executes client side MS-RPC functions and is part of samba. rpcclient manpage   Open up a terminal and execute: rpcclient -U "" target_ip_addressrpcclient -U "" target_ip_address In password prompt just hit enter.   If the connection is successful …

Linux

Linux Add User To Group

Add new user to existing group sudo useradd -G group_name user_namesudo useradd -G group_name user_name Add new user to new group sudo groupadd group_namesudo groupadd group_name sudo useradd -G group_name user_namesudo useradd -G group_name user_name Add existing user to existing group sudo usermod -a -G group_name user_namesudo usermod -a -G group_name user_name Change existing user …

Java

Save user settings in Java application

Class: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties;     public class configManager { private Properties _properties; private final String _filename = "my.properties";   public configManager(){ this._properties = new Properties(); File file=new File(this._filename);   if (!file.exists()) { try { file.createNewFile(); } catch (IOException ex) { System.err.println(ex.toString()); } }   try { this._properties.load(new …

Linux, Sniffing, Wireshark

Run Wireshark as a user rather than root – Ubuntu

Messages from wireshark: Running as user “root” and group “root”. This could be dangerous. Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:45: dofile has been disabled To fix them and run wireshark as normal user and not as root which is very dangerous do the following: sudo chgrp adm /usr/bin/dumpcapsudo chgrp adm /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcapsudo …

Windows 7

Change user password from the command line – Win7

If you would like to quickly change user password without having to enter the control panel: 1. Open command line with administrative rights 2. Issue the following command: net user username password examples: net user akarpouzas 12345678 do not use so simple passwords, this is just an example and, net user “Thanos Karpouzas” 12345678 if …