begin process at 2012 02 16 22:32:55
  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 :10 785

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 Source .NET (Dotnet) CHIFFREMENT XOR PLUS ROBUSTE par dheroux
Source avec Zip CRYPTAGE MARANT par alpha5
Source avec Zip ACCÈS PAR MOT DE PASSE À FEUILLE EXCEL par mimiZanzan
Source avec Zip CRYPTER-DÉCRYPTER UN TEXTE - TEXTE CRYPTÉ UNIQUEMENT EN MAJ... par Saintache
Source avec Zip Source avec une capture FOLDER PROTECTION par hackoo

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

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
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 : 5,366 sec (4)

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