GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 5:58 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SMB Scripting?
PostPosted: Thu Jan 27, 2011 3:23 am 
Cubic Contributor

Joined: Tue Jul 08, 2008 9:03 am
Posts: 79
Hey all.

Just wanted to ask if anyone knows how to get into SMB scripting? Essentially, I'd like to be able to customize what happens when a shared file is requested from another PC on my LAN. I've read that this 'file request' is done via the SMB (Server Message Block) protocol, and while it'd be really great to be able to write a script that gets executed whenever an SMB request is made to my PC, I can't seem to find any information on this kind of scripting online. I'm hoping its possible.

Does any1 on the forum have any experience setting up something like this?

Thanks guys.

_________________
A pawn can eventually become a queen...


Top
 Profile  
 
 Post subject: Re: SMB Scripting?
PostPosted: Thu Jan 27, 2011 7:53 am 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 6752
Location: Oxford, Englandshire
I've never come across SMB scripting and I've done alot of Windows server admin.

SMB is a protocol, like HTTP or Telnet, it defines the port used (TCP 445) and the format of the data that passes around. There's other stuff defined too like opportunistic file locking, but that's beyond the scope of this.

As far as I know you can't change how the process happens.

The only way I can think of to carry out your idea is for your firewall to execute a batch file or WScript when it receives a connection to 445. However, this probably won't work.

SAMBA is an open source implementation of SMB, you may get more info there.

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group