Jump to content

metho

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by metho

  1. hi, First of all, THANKS for replying, i must have checked this section of thread about 100 times today , waiting for a reply. <_< anyway looks like you know what you are talking about but i do not have a clue about vb.net or any other language etc. So if you dont mind, could you please elaberate or show me what to do and where to go etc. thanks in advance and thanks just for reading the thread. PS: come on guys, 59 hits and only one reply :( , come on, help a brother out here. ;) ;)
  2. Hi, I have been working on following batch for over two weeks now after watching Elder-n00b's php scrpit that does the same thing, which i tried but i could get anywhere with it. anyway cut long story short, i got it working (well sort of) using good old MS-DOS batching script. The problem is that i need to change some prameters which will make this script better, to be honest guys, you would be doing me a big favour if you could help me change 2 little things. ;) I'll highlight the bits where i need your help. thanks @echo off echo computer name changer! set /p name=your computername: reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %name% /f >nul 2>nul reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %name% /f >nul 2>nul reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %name% /f >nul 2>nul echo. echo computername is changed pause > nul echo echo change workgroup name now! set /p name=your workgroupname: [i]"would this work with netdom, would it give me an option where i can specify the workgroup (during the installation/run process of the script) name rather typing below which would stay the same for all the systems."[/i] netdom.exe member /joinworkgroup MSHOME echo work done pause > nul echo set varip=192.168.1.65 "is there a way i can change these last two octets during the run process of the script" set varsm=255.255.255.0 set vargw=192.168.1.254 set vardns1=192.168.1.254 set vardns2=192.168.2.254 ECHO First draft of IP Changer! ECHO Setting IP Address and Subnet Mask netsh int ip set address name = "Local Area Connection" source = static addr = %varip% mask = %varsm% ECHO Setting Gateway netsh int ip set address name = "Local Area Connection" gateway = %vargw% gwmetric = 1 ECHO Setting Primary DNS netsh int ip set dns name = "Local Area Connection" source = static addr = %vardns1% ECHO Setting Secondary DNS netsh int ip add dns name = "Local Area Connection" addr = %vardns2% rem ECHO Here are the new settings for %computername%: rem netsh int ip show config pause echo. is there anyway i can make this script better or incorpate with a different programming Lang i.e. VB. thanks
  3. metho

    VNC over SSH

    thanks very much for the reply.... ;) i installed freesshd and vnc server on my PC1. i can secure the traffic using putty (well, i think i can) by logging into shell. the next part is giving me hassle which is vncviewer, by default it should allow me to use 127.0.0.1(:5900) but i doesnt work instead i have to use the IP address of the host pc to connect, but i am sure it doesnt secure the traffic (or does it?, if i use the its ip address rather than localhost etc). could u tell me if i am doing something wrong! here is what i done! PC1 (22, 5900 are opened in the firewall) TightVnc Server allow loopback freesshd one user created PC2 (22, 5900 are opened in the firewall) Putty > Tunnel > 5900 127.0.0.1:5900 Login using host's ip address (works fine) type the user name of the FreeSShd user (works fine) next part vncviewer ( does not work 127.0.0.1 or 127.0.0.1:5900) but works with the host IP address!! what i am doing wrong??
  4. metho

    VNC over SSH

    hi Guys, I have not made many posts on this forum before, but i have been watching the episodes regularly which have been very helpful and informative. i have a problem which i cant get my head around. VNC over SSH, i am sure many of yous have done it in past or are familiar with the concept. I have two (windows XP) PCs (just for testing purposes, but this project involves doing it on more PCs which i will outline later). i want to control my other PC through VNC (LAN) but i want to secure the traffic with SSH using FREESSHD server. tightvnc, freesshd and putty are the three software i need. the way i understand so far is that, i need to install freesshd and tightvnc server on the machine which i want to control and vnc viewer and putty which will be controlling the other pc. how do i do that what configurations do i require, why do i need the putty client for etc. can i set freesshd server on a separete pc which will on all the time, is yes, how do i configure the putty or vnc server to talk to freesshd server for encryption! any help would be appreciated, i am noob so take it easy, lol! -metho
×
×
  • Create New...