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) =

Re: MySQL Database

2013-05-08 Thread Kevin Holleran
On Wed, May 8, 2013 at 2:56 PM, Chris Angelico ros...@gmail.com wrote: On Thu, May 9, 2013 at 4:52 AM, Kevin Holleran kdaw...@gmail.com 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

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: Parse a Wireshark pcap file

2013-01-23 Thread Kevin Holleran
, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Tue, 22 Jan 2013 22:43:24 -0500, Kevin Holleran kdaw...@gmail.com declaimed the following in gmane.comp.python.general: Mac OS 10.8.2 Python v.2.7 I downloaded from the sourceforge site, then tried to install with MacPorts when some

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 tomorrow what

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

Re: Parse a Wireshark pcap file

2013-01-22 Thread Kevin Holleran
= 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 tomorrow what others

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
On Tue, Jan 22, 2013 at 10:29 PM, Dave Angel d...@davea.name 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 to get me to here

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: 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 Fitness

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 kdaw...@gmail.com 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 m...@timgolden.me.uk wrote: On 08/11/2012 14:25, Kevin Holleran wrote: Good morning, I

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 c...@rebertia.com wrote: On Thursday, November 8, 2012, Kevin Holleran wrote: On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran kdaw...@gmail.com wrote: My goodness psexec. thanks can't believe that didn't come to me... On Thu, Nov 8

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 kdaw...@gmail.com wrote: On Tue, Oct 23, 2012 at 11:39 AM, Tim Golden m...@timgolden.me.uk wrote: On 23/10/2012 16:17, Kevin Holleran wrote: I am still having a small implementation problem [code] HKLM = winreg.HKEY_LOCAL_MACHINE

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 m...@timgolden.me.uk 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: code import

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 m...@timgolden.me.uk 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 welcome to chip in :) Ok

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

2012-10-23 Thread Kevin Holleran
and everything blending together... :) Thanks for your help! Kevin On Tue, Oct 23, 2012 at 4:07 AM, Tim Golden m...@timgolden.me.uk wrote: On 22/10/2012 21:01, Kevin Holleran wrote: Tim, I am looking here: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BF9F6FB0-C999-4D19-BED0

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 wlfr...@ix.netcom.comwrote: On Fri, 19 Oct 2012 17:19:56 -0400, Kevin Holleran kdaw...@gmail.com declaimed

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 m...@timgolden.me.uk 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 but DISABLED

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

2012-10-22 Thread Kevin Holleran
certainly open to anyway I can get the info. I have some odd behaviors across some servers during vulnerability scanning have a suspicion that some driver discrepancies on the NIC are to blame. Kevin On Mon, Oct 22, 2012 at 3:29 PM, Tim Golden m...@timgolden.me.uk wrote: On 22/10/2012 16:38, Kevin

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?

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

2012-10-19 Thread Kevin Holleran
, Prasad, Ramit ramit.pra...@jpmorgan.comwrote: 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 on these boxes. Is there a way

Re: Impersonating a Different Logon

2010-04-07 Thread Kevin Holleran
On Tue, Apr 6, 2010 at 4:11 PM, Tim Golden m...@timgolden.me.uk 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 specific key that I am

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

Re: PExpect on Windows System Using Cygwin

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

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

Re: Changing Remote Registry

2009-08-10 Thread Kevin Holleran
On Fri, Aug 7, 2009 at 2:08 PM, Tim Golden m...@timgolden.me.uk 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, item) if (value == wrongValue

Changing Remote Registry

2009-08-07 Thread Kevin Holleran
: [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 any help. -- Kevin

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 but we need to

Re: Changing Remote Registry

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