Mount the ISO: sudo mount -t udf -o loop,ro,unhide /path/to/file.iso /mnt Insert the USB drive. Run fdisk and specify the device name of the USB drive; for example: sudo fdisk /dev/sdc Delete any existing partition table and create a new one. Create a new partition of at least 4.5 GB. Mark it bootable and set…
Tag: Windows
Controlling windows system from a Linux box.
Set up winexe. wget "ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/GRNET:/synnefo/CentOS_CentOS-6/x86_64/winexe-1.00-9.1.x86_64.rpm" yum install winexe-1.00-9.1.x86_64.rpm Test the connection <pre>telnet 10.0.0.123 139</pre> Now we can try the system out winexe -U "User 1" –password=secretpassword //10.0.0.123 'cmd /C "whoami"' If you get : ERROR: Failed to open connection – ERRDOS:ERRnomem then it’s probably a Windows 7 box run reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"…
Windows way to create large file for testing
Very easy and cool tool very unused .. fsutil file createnew <filename> <length> nJoy π
Listing SIDs in Windows
In windows (again I know …. ) sometimes you get reference to removed users ( and sometimes not so removed) Β in mmc and secpol looking like this : S-1-5-21-123456789-3881959548-123456789-500 To check the SIDs of users for some obscure bug like I had today use: wmic useraccount get name,sid That’s it .. ( ofcourse you can…
Check if Windows Drive exists
In windows (yes I know) you can check if a drive exists by using IF EXIST E:\NUL echo yep it does .. that’s it . nJoy π
Vmware Client Automating connections
This is a hint from Andrew Thanks.. C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe -i yes -s 10.21.68.8 -u root -p password Works ! In a batch: start “VMLauncher” /D”C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\” VpxClient.exe -i yes -s 10.21.68.8Β -u root -p password” Thanks nJoy π
Windows equivalent to Linux ‘watch’ command
Very simply create a batchfile name it watch.batwith notepad with the following contents: @ECHO OFF :loop cls %* timeout /t 5 goto loop Run as such : watch dir *.mpg