Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ImportError
Post: RE: ImportError

(Nov-12-2021, 09:09 PM)snippsat Wrote: (Nov-12-2021, 03:23 PM)antmar904 Wrote: So I found the moduels called "logger.py" in the github folder that I downloaded in the following folder path /module...
antmar904 General Coding Help 9 3,245 Nov-13-2021, 02:08 PM
    Thread: ImportError
Post: RE: ImportError

So I found the moduels called "logger.py" in the github folder that I downloaded in the following folder path /modules/logger.py how can I import that since that is what it's looking for?
antmar904 General Coding Help 9 3,245 Nov-12-2021, 03:23 PM
    Thread: ImportError
Post: RE: ImportError

(Nov-11-2021, 07:01 AM)Gribouillis Wrote: I've found github repository which must be the source of the program splunk/attack_range. In the file attack_range.py, there is a line from modules import l...
antmar904 General Coding Help 9 3,245 Nov-12-2021, 02:38 PM
    Thread: ImportError
Post: RE: ImportError

(Nov-10-2021, 08:35 PM)deanhystad Wrote: The error message says it cannot find logger. Have you installed a package named logger (did it appear when you ran pip list)? logger is not in the Python ...
antmar904 General Coding Help 9 3,245 Nov-10-2021, 11:41 PM
    Thread: ImportError
Post: ImportError

Hi I am new to python. I am trying to run a script called attach_range_local.py but I keep getting the following error: Traceback (most recent call last): File "attack_range_local.py", line 4, in ...
antmar904 General Coding Help 9 3,245 Nov-10-2021, 08:29 PM
    Thread: write to txt file one line
Post: RE: write to txt file one line

Hi thank you for your help. The string I am looking for the output.txt file is: 'sourceIP = '1.1.1.1' or destinationIP = '1.1.1.1' or sourceIP = '12.43.123.123' or destinationIP = '12.43.123.123' an...
antmar904 General Coding Help 3 2,222 Aug-16-2019, 12:34 PM
    Thread: write to txt file one line
Post: write to txt file one line

Hi, I have a txt file that contains 100 ip addresses with one on each line. Exp of txt file: 1.1.1.1 12.43.123.123 154.4.1.1 3.3.3.3 I need to read these ip address then write a string plus the i...
antmar904 General Coding Help 3 2,222 Aug-15-2019, 07:06 PM
    Thread: Get host from ip
Post: RE: Get host from ip

Thank you for your help. I finally figured it out. This seems to be working. import sys import socket import time n = time.strftime("%Y%m%d-%H%M%S") IP = sys.argv[1] host = socket.gethostbyaddr(IP) h...
antmar904 General Coding Help 3 2,845 Jan-31-2018, 08:27 PM
    Thread: Get host from ip
Post: Get host from ip

Hi All, First time post and first python script ever! :) I am trying to create a python script that will have one argument passed to it: python IPToHostName.py 1.1.1.1 I would like to get the host...
antmar904 General Coding Help 3 2,845 Jan-31-2018, 07:09 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020