Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cleanPayload(p): | |
p = str(p) | |
# Clean up packet payload from scapy output | |
return p.split('Raw')[0].split("Padding")[0].replace('|','\n').strip('<')\ | |
.strip('bound method Ether.show of ').replace('>','').replace('[<','[')\ | |
.replace('\n<','<').replace('<','\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "http://localhost:8080" | |
data = {'sender': 'Alice', 'receiver': 'Bob', 'message': 'We did it!'} | |
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} | |
r = requests.post(url, data=json.dumps(data), headers=headers) |
NewerOlder