Re: MySQL Database

2013-05-08 Thread Kevin Holleran
Thanks, I actually intend to, was just whipping something up to be an example for my question. -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University GCFA, GCFE, CCNA, ISA, MCSA, MCDST, MCP

Re: MySQL Database

2013-05-08 Thread Kevin Holleran
On Wed, May 8, 2013 at 2:56 PM, Chris Angelico wrote: > On Thu, May 9, 2013 at 4:52 AM, Kevin Holleran wrote: > > Will using db_c to update the database mess up the loop that is cycling > > through db_c.fetchall()? > > Nope; fetchall() returns a list, which you're then

MySQL Database

2013-05-08 Thread Kevin Holleran
Hello, I want to connect to a MySQL database, query for some records, manipulate some data, and then update the database. When I do something like this: db_c.execute("SELECT a, b FROM Users") for row in db_c.fetchall(): (r,d) = row[0].split('|') (g,e) = domain.split('.

Re: Parse a Wireshark pcap file

2013-01-23 Thread Kevin Holleran
, Jan 23, 2013 at 1:24 AM, Dennis Lee Bieber > wrote: > >> On Tue, 22 Jan 2013 22:43:24 -0500, Kevin Holleran >> declaimed the following in gmane.comp.python.general: >> >> > >> > Mac OS 10.8.2 >> > Python v.2.7 >> > I downloaded from the

Re: Parse a Wireshark pcap file

2013-01-22 Thread Kevin Holleran
On Tue, Jan 22, 2013 at 10:29 PM, Dave Angel wrote: > On 01/22/2013 10:15 PM, Kevin Holleran wrote: > >> Thanks, I have been trying to get it to work but I am on Mac OS 10.8.2. I >> tried to get it from Macports and download/install it myself. Both seem >&

Re: Parse a Wireshark pcap file

2013-01-22 Thread Kevin Holleran
I also found this: http://code.google.com/p/py-greppcap/ Which I can leverage to do what I want but I also get that dnet error! -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University SANS

Re: Parse a Wireshark pcap file

2013-01-22 Thread Kevin Holleran
id_value => password. Thanks for your help. -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University SANS GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP "Do today what others won't, do

Parse a Wireshark pcap file

2013-01-22 Thread Kevin Holleran
Is there a way to parse out a wireshark pcap file and extract key value pairs from the data? I am illustrated a sniff of some traffic and why it needs utilize HTTPS instead of HTTP but I was hoping to run the pcap through a python script and just output some interesting key value pairs Thanks

Re: Importing class from another file

2013-01-22 Thread Kevin Holleran
Thanks, you got me straightened out. -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University SANS GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP "Do today what others won't, do tom

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
On Thu, Nov 8, 2012 at 11:32 AM, Chris Rebert wrote: > On Thursday, November 8, 2012, Kevin Holleran wrote: > >> On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran wrote: >> >>> My goodness psexec. >>> >>> thanks can't believe that didn

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran wrote: > My goodness psexec. > > thanks can't believe that didn't come to me... > > > > > On Thu, Nov 8, 2012 at 9:31 AM, Tim Golden wrote: > >> On 08/11/2012 14:25, Kevin Holleran wrote: >>

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
My goodness psexec. thanks can't believe that didn't come to me... -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP My Paleo

Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
Good morning, I wrote a python script to connect out to a bunch of my remote machines that are running some software. It modifies a bunch of the config files for me. After making the changes, I need to restart the software. The way to do this is to call an .exe passing in a argument 'restart'

Re: Is there a way to programmatically turn on remote registry?

2012-10-24 Thread Kevin Holleran
On Wed, Oct 24, 2012 at 9:11 AM, Tim Golden wrote: > On 24/10/2012 13:36, Kevin Holleran wrote: > > Here is the output as you requested. Again thanks for your time & help. > > I hate monopolizing one person's time so much > > Heh. Everyone else is wel

Re: Is there a way to programmatically turn on remote registry?

2012-10-24 Thread Kevin Holleran
On Wed, Oct 24, 2012 at 7:51 AM, Tim Golden wrote: > On 24/10/2012 12:40, Kevin Holleran wrote:> Here is the full traceback: > > > Could you confirm what version of Windows is running on the remote > machine? Also, could you show the output of the following, please: > >

Re: Is there a way to programmatically turn on remote registry?

2012-10-24 Thread Kevin Holleran
On Tue, Oct 23, 2012 at 11:44 AM, Kevin Holleran wrote: > On Tue, Oct 23, 2012 at 11:39 AM, Tim Golden wrote: > >> On 23/10/2012 16:17, Kevin Holleran wrote: >> > I am still having a small implementation problem >> > >> > [code] >>

Re: Is there a way to programmatically turn on remote registry?

2012-10-23 Thread Kevin Holleran
g and everything blending together... :) Thanks for your help! Kevin On Tue, Oct 23, 2012 at 4:07 AM, Tim Golden wrote: > On 22/10/2012 21:01, Kevin Holleran wrote: > > Tim, > > > > I am looking here: > > > > > SOFTWARE\Microsoft\Windows\CurrentVersion\Uninst

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
repancies on the NIC are to blame. Kevin On Mon, Oct 22, 2012 at 3:29 PM, Tim Golden wrote: > On 22/10/2012 16:38, Kevin Holleran wrote: > >> Thanks, I will look into that. WMI is enabled, but everything WMI query I >> wrote (& I am NOT a WMI expert or even close)

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
On Mon, Oct 22, 2012 at 11:05 AM, Tim Golden wrote: > On 22/10/2012 15:51, Kevin Holleran wrote: > > Back at it this morning. The RPC was due to needing to run it under > > another account (or so I think now...). However, the RemoteRegistry > > service is not just STOPPED b

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
need, stop the service, then set it back to disabled Does anyone know if there is a way to do this? Thanks for your help. Kevin On Fri, Oct 19, 2012 at 8:56 PM, Dennis Lee Bieber wrote: > On Fri, 19 Oct 2012 17:19:56 -0400, Kevin Holleran > declaimed the follow

Re: Is there a way to programmatically turn on remote registry?

2012-10-19 Thread Kevin Holleran
12 at 4:18 PM, Prasad, Ramit wrote: > Kevin Holleran wrote: > > Hi, > > > > I have written a script to poll some registry values but remote registry > is turned off through GPO on the > > network I need to run it against. The account running the script is an > admin

Is there a way to programmatically turn on remote registry?

2012-10-19 Thread Kevin Holleran
Hi, I have written a script to poll some registry values but remote registry is turned off through GPO on the network I need to run it against. The account running the script is an admin on these boxes. Is there a way for me to turn on remote registry for the duration of the script's runtime? T

Re: Impersonating a Different Logon

2010-04-07 Thread Kevin Holleran
On Tue, Apr 6, 2010 at 4:11 PM, Tim Golden wrote: > On 06/04/2010 20:26, Kevin Holleran wrote: >> >> Hello, >> >> I am sweeping some of our networks to find devices.  When I find a >> device I try to connect to the registry using _winreg and then query a >&g

Impersonating a Different Logon

2010-04-06 Thread Kevin Holleran
Hello, I am sweeping some of our networks to find devices. When I find a device I try to connect to the registry using _winreg and then query a specific key that I am interested in. This works great for machines that are on our domain, but there are left over machines that are stand alone and th

Re: PExpect on Windows System Using Cygwin

2009-09-25 Thread Kevin Holleran
On Fri, Sep 25, 2009 at 6:09 AM, Dave Angel wrote: > Sean DiZazzo wrote: > >> On Sep 24, 4:37 pm, Dave Angel wrote: >> >> >>> >>> Why not just use the subprocess module? It's built into the Windows >>> distribution, and doesn't need cygwin. >>> >>> DaveA >>> >>> >> >> Can subprocess

PExpect on Windows System Using Cygwin

2009-09-24 Thread Kevin Holleran
Hello, I downloaded and installed the pexpect module and wrote a script. All is well and good, but the script proved to be pretty useful and now I was asked to run it as a scheduled task up on a server to run periodically. I was intending on simply packaging it up with Py2Exe and moving it to th

Re: Changing Remote Registry

2009-08-10 Thread Kevin Holleran
On Fri, Aug 7, 2009 at 2:08 PM, Tim Golden wrote: > Kevin Holleran wrote: > >> Long story short, I am using _winreg to do this. >> >> hKey = _winreg.OpenKey (keyPath, path, 0, _winreg.KEY_SET_VALUE) >> value,type = _winreg.QueryValueEx(hKey, it

Re: Changing Remote Registry

2009-08-07 Thread Kevin Holleran
On Fri, Aug 7, 2009 at 10:46 AM, MRAB wrote: > Kevin Holleran wrote: > >> >> On Fri, Aug 7, 2009 at 10:11 AM, MRAB > pyt...@mrabarnett.plus.com>> wrote: >> >>Kevin Holleran wrote: >> >>Good morning, >> >>

RE: Changing Remote Registry

2009-08-07 Thread Kevin Holleran
> > Good morning, >> >> I fear the answer to this is that I just cannot do this >> >> I wrote a python script that goes out to a bunch of remote machines and >> queries the registry for some values. Effectively, there have been some >> software upgrades that have been done as the need arose b

Changing Remote Registry

2009-08-07 Thread Kevin Holleran
ndowsError: [Error 5] Access Denied I am running this from my machine as a domain admin, connecting to the remote machine which is also on the domain. I am connecting to the remote registry with: keyPath = _winreg.ConnectRegistry(r"\\" + ipAddress,_winreg.HKEY_LOCAL_MACHINE) Thanks for