2023-4-23 myluzh
Windows
0x01 下载msi安装包
https://www.realvnc.com/en/connect/download/combined/
1.下载msi安装包,这边提供了两个版本的VNCServer msi安装包。
6.2.1版本下载地址
https://downloads.realvnc.com/download/file/perm.files/VNC-Permissions-Creator-6.2.1-Windows-32bit.exe
7.0.0版本下载地址
https://downloads.realvnc.com/download/file/perm.files/VNC-Permissions-Creator-7.0.0-Windows-32bit.exe
0x02 安装VNC Connect ADMX 模板
https://help.realvnc.com/hc/en-us/articles/360005488898
1.下载ADMX模板
vncserver模板
VNC Server ADMX templates https://downloads.realvnc....
阅读全文>>
标签: 域控 VNCServer ADMX 激活
评论(0)
(885)
2023-4-12 myluzh
H3C
核心交换机,三层acl,svi配置(10.60.200.1)
#
vlan 16
#
acl advanced 3002
rule 5 permit ip destination 10.1.29.10 0
rule 100 deny ip
#
interface Vlan-interface16
ip address 10.60.16.1 255.255.255.248
packet-filter 3002 inbound
接入交换机,接口配置,绑定ip跟mac(10.60.200.30)
#
vlan 16
#
interface GigabitEthernet1/0/25
port access vlan 16
ip verify source ip-address mac-address
ip source binding ip-address 10.60.16.5 mac-address 047c-162b-4280
#
阅读全文>>
标签: 交换机 h3c
评论(0)
(373)
2023-4-2 myluzh
Python
1.需要在AD域控服务器安装OpenSSH
2.脚本同级目录需要有 人员.csv 内容包括(新账号,旧账号,姓名)
例如:10003105,JS106931,张三
import paramiko
import logging
import os
class AD:
def __init__(self):
self.ad = "jsjd.local"
def modifySamA(self, new_jsid, old_jsid, name):
logger.info(f"ModifySamA,current:{new_jsid},{old_jsid},{name}")
try:
client = paramiko.SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
...
阅读全文>>
标签: python AD域控
评论(0)
(372)
2023-4-2 myluzh
Python
chromedriver()函数,自动安装驱动
import random
import time
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
def chromedriver():
chromedriver_path = ChromeDriverManager().install()
return chromedriver_path
def main():
option = webdriver.ChromeOptions()
option.add_argument('--disable-gpu')
# option.add_argument('--incognito') # 无痕模式
# option.ad...
阅读全文>>
标签: python selenium
评论(0)
(408)