Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Tuesday, 17 September 2019

sync/change/update time with NTP server on windows

net stop w32time

w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com, 0.us.pool.ntp.org,1.us.pool.ntp.org,2.us.pool.ntp.org,3.us.pool.ntp.org"

w32tm /config /reliable:yes

net start w32time

w32tm /query /configuration


Monday, 1 February 2016

How to change pc mac address

What is MAC address?

MAC(media access control address) is physical address of your computer system. Each device have unique MAC address. MAC address is assigned by manufacture into NIC(network interface controller)

Why to change MAC address?

1. Motherboard, router is changed and your ISP is using the previous MAC address.
2. If MAC address is blocked by the firewall or router
3. Safety

Watch Video : https://www.youtube.com/watch?v=2HwVB2XlQfk(audio+video  mixing with ffmpeg)
ffmpeg.exe -ss 00:00:00  -t 116 -i "mac2.avi" -ss 0:00:00 -t 116 -i "mac2.mp3" -map 0:v:0 -map 1:a:0 -y out.mp4

More about ffmpeg :http://hackfi.blogspot.in/2015/10/slow-motion-video-using-ffmpeg.html

How to change MAC address in windows:

1. Generate random MAC address.

2. Go to Control panel >> Network and Internet >> Network connection.




3. Right Click on Local Area Connection >> Configure.



4. Advanced >> select Network Address >> enter "MAC address" into value>> Ok

5. To check MAC address "ipconfig -all"







Sunday, 10 January 2016

Schedule,abort,reboot,shutdown in windows with cmd

Sometime after the software update windows automatically restart the system.(system will restart in 10 minutes) Or you may want to schedule shutdown or reboot of system.


To abort this shutdown: (before you know how to shutdown you should know how to abort)

shutdown -a or shutdown /a

Scheduling shutdown, reboot time for windows:

shutdown -s -t 30  (Shutdown will be in 30 sec)

shutdown -r -t 30 (Reboot will be in 30 sec)



Create batch file off above command:

shutdown.bat ( open notepad and write below save as shudown.bat file)

shutdown.exe -s -t -60

abort.bat ( open notepad and write below save as abort.bat file)

shutdown.exe -a

HackTips with shutdown.bat file:(first read solution)

If the shutdown.bat file is copied to "startup" folder of windows then whenever the system will start
the shutdown.bat file  command will run and system will shutdown. This will create shutdown loop the system will never start.

Where is startup folder(startup folder path)

Solution: 

Need to start windows in safe mode by pressing F8 key from your keyboard and we need to delete the shutdown.bat file from the startup folder.(in safe mode only basic programs are loaded)

Fun stuff:

Create shutdown.bat(with -t 00) file and send your friend and tell them to double click on that file to see magic or whatever.

Schedule shutdown time in some system.


Thursday, 1 October 2015

Slow motion video using ffmpeg

Speeding up/slowing down video using ffmpeg:

-i = input file(mov,mp4,avi,mkv,flv)
-filter:v= video filter
-filter:a= audio filter(The atempo filter is limited to using values between 0.5 and 2.0)
setpts= set presentation timestamp
-r = frame rate

Slowing down:

Video:
ffmpeg -i input.mp4 -filter:v "setpts=2.0*PTS" output.mp4  //half speed

ffmpeg -i input.mp4 -filter:v -r 30 "setpts=2.0*PTS" output.mp4  //half speed with fps 30
(Note: More fps= Large video size)

Audio:
ffmpeg -i input.mkv -filter:a "atempo=2.0" -vn output.mkv

Speeding up:

Video:
ffmpeg -i input.mp4 -filter:v "setpts=2.0*PTS" output.mp4  //2xfaster

Audio:
ffmpeg -i input.mkv -filter:a "atempo=0.5" -vn output.mkv

Download ffmpeg https://www.ffmpeg.org/download.html

More info :ffmpeg.org


Saturday, 12 September 2015

Windows trick to lock your folder using CACLS

CACLS command that apply the permission rules on folders.
Access Control Lists(ACL) only works on NTFS formatted drive,
ACL determines which users (or groups of users) can read or edit the file.


1. Open Notepad and type below command.

cacls folder_name /E /P everyone:n

eg. cacls test /E /P everyone:n

2. Save notepad file as "lock.bat".

3.Open another Notepad and type below command.

cacls folder_name /E /P everyone:f

eg. cacls test /E /P everyone:f

4. Save notepad file as "unlock.bat".

5. Now to lock your folder,double click lock.bat file.

6. And to unlock the folder,double click unlock.bat file.



More info about CACLS: http://ss64.com/nt/cacls.html

Grant access rights, permision can be:
          R  Read 
          W  Write
          C  Change (read/write) 
          F  Full control
          N  None

Saturday, 30 August 2014

Hack Windows password using backtrack

NOTE : Backup all your data first

Watch Video : http://youtu.be/BlOtqwbZagE

All windows-os encrypted password is stored in SAM(Security Accounts Manager) file . Which is present in "C:\Windows\System32\config" folder.

What we have to do to hack password is copy the all "config" folder of computer which don't have any password to the other computer have the password.
(I have tried on windows7 ultimate,windows-xp works 100%)

The question is how to paste the "config"  folder into computer which have the password ?
(we can do this thing by using Backtrack live cd or other live cd like fedora,etc)

Step 1:
Insert the backtrack live cd into computer which don't have the password and restart the computer.choose "Text mode". It will about 2 min to start backtrack-os from CD,[Default backtrack password is "toor"].
when the text mode is started type "Startx" command to run graphical view of backtrack.

Step 2:
Now you will see your "C: drive"(actually not c: drive you have to search which drive have the windows folder) in Backtrack "computer" . copy the "config" folder from "Windows\System32\" to any pendrive .
Now you have the "config" folder of computer which don't have any password into your pendrive.

Step 3:
Follow the "Step 1" on other computer who have the password. Now copy the "config" folder which you have in the pendrive to "Windows\System32\".

Step 4:
Done. Restart the other computer which have the password. you will see no password is asked.
(if linux live run doesnot start,then goto bios setting and change the sata mode=AHCI)

Watch Video : http://youtu.be/BlOtqwbZagE