Python Forum
run scapy from python script ..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run scapy from python script ..
#14
With a return statement:

def add_two(x):
    return x + 2
Output:
>>> y = add_two(3) >>> y 5
I'm not sure exactly what should be returned out of your function, but you would use the return statement to do it. If this is new to you, you should check out the functions tutorial (link in my signature below).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
run scapy from python script .. - by evilcode1 - Sep-09-2018, 08:32 AM
RE: run scapy from python script .. - by ichabod801 - Sep-09-2018, 12:42 PM
RE: run scapy from python script .. - by evilcode1 - Sep-10-2018, 08:24 AM
RE: run scapy from python script .. - by ichabod801 - Sep-10-2018, 01:08 PM
RE: run scapy from python script .. - by evilcode1 - Sep-10-2018, 04:50 PM
RE: run scapy from python script .. - by ichabod801 - Sep-10-2018, 05:28 PM
RE: run scapy from python script .. - by evilcode1 - Sep-11-2018, 09:16 AM
RE: run scapy from python script .. - by ichabod801 - Sep-11-2018, 12:23 PM
RE: run scapy from python script .. - by evilcode1 - Sep-12-2018, 07:54 AM
RE: run scapy from python script .. - by buran - Sep-12-2018, 08:11 AM
RE: run scapy from python script .. - by evilcode1 - Sep-12-2018, 10:24 AM
RE: run scapy from python script .. - by ichabod801 - Sep-12-2018, 04:54 PM
RE: run scapy from python script .. - by evilcode1 - Sep-12-2018, 07:45 PM
RE: run scapy from python script .. - by ichabod801 - Sep-13-2018, 01:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,385 Jun-29-2023, 11:57 AM
Last Post: gologica
  Permission issue when using scapy jao 3 10,003 Feb-05-2022, 06:14 PM
Last Post: snippsat
  error in scapy attribute 'haslayer' evilcode1 5 6,601 Mar-02-2021, 11:19 AM
Last Post: evilcode1
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,978 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,332 May-28-2020, 05:27 PM
Last Post: micseydel
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,648 May-11-2019, 08:12 PM
Last Post: keames
  Help Importing Protocol Library Into Scapy joedirgy 0 2,091 May-02-2019, 07:31 PM
Last Post: joedirgy
  How to run python script which has dependent python script in another folder? PrateekG 1 3,180 May-23-2018, 04:50 PM
Last Post: snippsat
  How to call one python script and use its output in another python script lravikumarvsp 3 32,476 May-16-2018, 02:08 AM
Last Post: lravikumarvsp
  save the output from scapy to txt file evilcode1 11 10,943 Oct-10-2017, 02:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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