Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 5 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions PenTestingComms/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,39 @@
#include <Arduino.h>
#include "WiFi.h"
#include <HTTPClient.h>
#include "sensitiveInformation.h"
#include <SPI.h>

void sendData(){
Serial.println("Encrypt some data");
}

void connectToWifi() {
while (!Serial)
{
delay(10);
}
delay(1000);
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED)
{
delay(1000);
Serial.println("Connecting to WiFi..");
}
Serial.println();
Serial.print("Connected to the Internet");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}

void setup()
{
// put your setup code here, to run once:
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println("Hello World");

// Connect to Wifi
connectToWifi();
}

void loop()
Expand Down
13 changes: 13 additions & 0 deletions PenTestingComms/src/sensitiveInformation.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Contains any sensitive Information that you do not want published to Github.
*
* The SSID and Password variables will need to be changed if you’re connecting to another Wireless Access Point (such as at home). * The SSID and Password variables will need to be changed if you’re connecting to another Wireless Access Point (such as at home).

* The `http_username` and `http_password` variables are used to authenticate when users are attempting to access secured pages.
*
* Make sure this file is included in the .gitignore!
*/

const char* host = "Encrypted-data";
const char* ssid = "CyberRange"; // Wifi Network Name
const char* password = "CyberRange"; // Wifi Password
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[![Open in Visual Studio Code](https://classroom.github.com/assets/open-in-vscode-718a45dd9cf7e7f842a935f5ebbe5719a5e09af4491e668f4dbf3b35d5cca122.svg)](https://classroom.github.com/online_ide?assignment_repo_id=14344058&assignment_repo_type=AssignmentRepo)
# PenTesting

46 changes: 46 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#include <Arduino.h>
#include "WiFi.h"
#include <HTTPClient.h>
#include "sensitiveInformation.h"
#include <SPI.h>

void sendData(){
Serial.println("Encrypt some data");
}

void connectToWifi() {
while (!Serial)
{
delay(10);
}
delay(1000);
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED)
{
delay(1000);
Serial.println("Connecting to WiFi..");
}
Serial.println();
Serial.print("Connected to the Internet");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}

void setup()
{
pinMode(13, OUTPUT);
Serial.begin(9600);

// Connect to Wifi
connectToWifi();
}

void loop()
{
// put your main code here, to run repeatedly:
sendData();

// waits 10 seconds before starting the loop again
delay(10000);
}
13 changes: 13 additions & 0 deletions sensitiveInformation.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Contains any sensitive Information that you do not want published to Github.
*
* The SSID and Password variables will need to be changed if you’re connecting to another Wireless Access Point (such as at home). * The SSID and Password variables will need to be changed if you’re connecting to another Wireless Access Point (such as at home).

* The `http_username` and `http_password` variables are used to authenticate when users are attempting to access secured pages.
*
* Make sure this file is included in the .gitignore!
*/

const char* host = "Encrypted-data";
const char* ssid = "CyberRange"; // Wifi Network Name
const char* password = "CyberRange"; // Wifi Password