begin process at 2010 03 16 10:57:50
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Sécurité

 > ACTIVER LE PARTAGE DU DISQUE DUR : NETBIOS

ACTIVER LE PARTAGE DU DISQUE DUR : NETBIOS


 Information sur la source

Note :
6,75 / 10 - par 4 personnes
6,75 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Sécurité Niveau :Débutant Date de création :15/09/2004 Date de mise à jour :15/09/2004 17:29:05 Vu :9 240

Auteur : wxccxw

Ecrire un message privé
Site perso
Commentaire sur cette source (3)
Ajouter un commentaire et/ou une note

 Description

c'est un code qui permet d'activer le partage du disque dur (sur le port 139) Netbios !

Source

  • rem barok -activation / desactivation du partage de disque dur(vbe)
  • rem by Jean GUIS Copyright 2004-2005 tout droits reserve
  • Verif()
  • Function verif()
  • Set WS = CreateObject("Wscript.Shell")
  • k=WS.regread("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch")
  • IF k="1" then
  • ok()
  • else
  • no()
  • End IF
  • End Function
  • Function no()
  • Set WshShell = CreateObject("WScript.Shell")
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Flags",770, "REG_DWORD"
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Parmlenc", 6837, "REG_BINARY"
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Parm2enc", 0, "REG_BINARY"
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Path", "C:"
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan \C$\Remark",""
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$\Type", 0, "REG_DWORD"
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch","1","REG_SZ"
  • msgbox "le partage a ete active" ,vbinformation,"Partage"
  • End Function
  • Function ok()
  • msgbox "le PARTAGE est deja active", vbinformation,"Partage"
  • End Function
  • Function key()
  • Set WshShell = CreateObject("WScript.Shell")
  • WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch","0","REG_SZ"
  • End Function
rem barok -activation / desactivation du partage de disque dur(vbe)
rem by Jean GUIS Copyright 2004-2005 tout droits reserve
Verif()

Function verif()
Set WS = CreateObject("Wscript.Shell")
k=WS.regread("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch")
IF k="1" then
ok()
else
no()
End IF
End Function

Function no()
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Flags",770, "REG_DWORD"
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Parmlenc", 6837, "REG_BINARY"
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Parm2enc", 0, "REG_BINARY"
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$ \Path", "C:"
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan \C$\Remark",""
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C$\Type", 0, "REG_DWORD"
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch","1","REG_SZ"
msgbox "le partage a ete active" ,vbinformation,"Partage"
End Function

Function ok()
msgbox "le PARTAGE est deja active", vbinformation,"Partage"
End Function

Function key()
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMReset_Switch","0","REG_SZ"
End Function



 Historique

15 septembre 2004 17:29:05 :
la mise

 Sources de la même categorie

Source avec Zip Source avec une capture VPN LIFEGUARD - AUTORECONNEXION DE SON VPN ET BLOCAGE D'APPL... par Philippe734
Source avec Zip Source avec une capture Source .NET (Dotnet) APPARTENANCE AUX GROUPES DE SÉCURITÉ par legranche
Source avec Zip Source avec une capture Source .NET (Dotnet) REMOTE KEYLOGGER par elguevel
Source avec Zip PETITE IMPLEMENTATION DE L'ALGO SERVANT AU CRYPTAGE RSA par ccgousset
Source avec Zip SAUVEGARDES FICHIERS par claude440

Commentaires et avis

Commentaire de Bricomix le 15/09/2004 19:11:49

Pour partager un disque il faut utiliser la commande Net Share ;)

--> Net Share NomDePartage=Chemin

Exemple : Net Share C=C:

Dans une invite de commandes, tapes Net Share /? pour voir les possibilités :)

Commentaire de scelw le 16/01/2005 12:56:14

c'est quoi cette commande?
On l'utilise comment? C'est une instruction VB ou une commande MS-DOS qu'il faut lancer depuis VB?

Commentaire de cbnet le 15/02/2005 20:28:07

c'est une commande dos a lancer depuis vb, et c'est beaucoup plus simple...
Shell "cmd /c net share mon_partage=C:\Docs"
mais il y a beaucoup de commandes net, et pour savoir tout ce qu'on peut faire avec on fait : net /?
puis pour une commande precise : net help commande,
ex : net help share, ou net help use...

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mars 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728
293031    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,374 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales