From charlesreid1

m (Replacing charlesreid1.com:3000 with git.charlesreid1.com)
 
(80 intermediate revisions by the same user not shown)
Line 1: Line 1:
Task list for January:
Task list for January:


==planning stages==
==in progress==


===notes===
===data engineering===


* Shore up notes:
Data engineering scenarios
** Experiment design: https://charlesreid1.com:3000/notes/experiment-design
* workflow with large amounts of data
** Linear models: https://charlesreid1.com:3000/notes/linear-models
* collectd on widy and others
** Rubiks cube: https://charlesreid1.com:3000/notes/rubiks-notes
* logging and log files
* dashboards
* [[Google Cloud/Review]]


[[2018/January/Notes Repositories]]
network integration:
* everything is related...
* elasticsearch can search json, provides searchable interface to data
* log data into json format (mongo)
* collectd system metrics into json format (mongo)
* bot monitoring metrics, other metrics.... all into json format (mongo)
* then we just need to figure out the mongodb - grafana hookups


===netdata===
Master plan:
* the master plan is emerging
* elasticsearch link: [https://www.sitepoint.com/building-recipe-search-site-angular-elasticsearch/]


<s>Netdata setup:
[[2018/January/Data Engineering]]
* Install Netdata on jupiter, basilisk, morpheus (eventually, raspberry pis)
* Netdata running on each, and Netdata instances accessible from on the network
* Install Prometheus on jupiter
* Connect Netdata on basilisk and morpheus to Prometheus on jupiter</s>


<s>VPN mesh network:
===kali networking===
* [[Tinc]]
* Working okay on the home network.</s>


<s>Netdata security:
(on hold - tap hardware)
* Set up vpn via tinc on rojo
* Set up netdata on rojo
* Bind netdata to vpn ip address only
* Verify rojo netdata instance protected</s>


Digital ocean guide - what role does nginx play?
Network monitoring configuration setup:


Focus on monitoring computational infrastructure, networking, security. Focus on DASHBOARDS.
Materials:
* isp-provided router (internet-enabled port)
* network tap device
* network monitoring server on a separate management lan
* "safe" gateway router for everybody


[[Netdata/Security]]
Set up the tap:
* port 1 of the tap connects to isp
* port 2 of the tap connects to safe router gateway, local wifi router
* port 3 of the tap connects to the network monitor, which is receiving network traffic capture from the tap device


[[Prometheus/Security]]
Bro:
* Logs everything - but how to configure it? how to run it? what is the big picture?
* How does it fit into the network architecture - is it analyzing the pile of packets that's coming in to the security onion server?


Charlesreid1.com data
Network monitoring distros:
* <s>Share netdata securely</s>
* [[Security Onion]]
* <s>VPN connection to server</s>
* [[Selks]] - consists of:
* Logs, network traffic, loading, pages, processes
** Suricata
** Elasticsearch
** Logstash
** Kibana
** Scirius
** Evebox
* [[Rock]] Network Security Monitor
* What I'm trying to do: http://www.austintaylor.io/suricata/elasticsearch/logstash/continuous/monitoring/intrusion/detection/system/2016/12/17/build-a-world-class-monitoring-system-enterprise-small-office-home/


[[Netdata]]
What this enables:
* hardware level interception point
* arp spoofing, mitm, honeypot, etc. - both an attack point and an observation point


[[Prometheus]]
Next steps:
* Networks: MITM, wifi, evil ap, honeypot
* metasploit, sslstrip, certificate, frankencert
* focus on communications and networking
* pw credentials wall of sheep in a box


===data engineering===
===charlesreid1 wiki===


Data engineering scenarios
scraping page links and history into database
* Basic workflow, dealing with large amounts of data and doing machine learning on it
* <s>get a single page using Site() and Page() objects</s>
* See also: [[Google Cloud/Review]]
* <s>load the history of a single page using fullVersionHistory()</s>
* <s>get lists of all pages</s>
* set up mongodb on jupiter
* scrape all templates
* pywikibot code link: https://pywikibot.readthedocs.io/en/latest/_modules/pywikibot/page/


<s>Logging
[[Pywikibot]]
* Get [[Netdata]] set up</s>


[[2018/January/Data Engineering]]
===fixing dropbear===


===kali===
dropbear un-bricking:
* <s>open the case</s>
* <s>to unbrick the router, we need to install stuff on the raspberry pi.</s>
* <s>to install stuff on the raspberry pi, we need to reflash the sd card.</s>
* <s>to reflash the sd card, we need to figure out which image to flash with. (used kali.)</s>
* <s>to get pi to join wifi, need to plug into physical network</s>
* <s>to plug into physical network and access via lan, need to find the pi</s>
* <s>to find the pi, need to install nmap on widy openwrt via opkg</s>
* <s>to install nmap on widy, need to resolve bunch of missing opkg packags (resolved: packages and oldpackages split)</s>
* <s>to get pi up and running and cleaned up, need to revisit old kali dotfiles (slew of work to do with new dotfiles repositories for kali raspberry pi)</s>
* <s>once all that is done, then we can put build-essential on the pi</s>
* <s>once we have build essential we can put the jtag software on the pi</s>
* tjtag pi: [https://github.com/oxplot/tjtag-pi]
* wiring diagram: [https://github.com/oxplot/tjtag-pi/blob/master/wiring.jpg]


Live USB problems:
[[Dropbear]]
* Not persistent with preferences (keyboard)
* Logging, code, scripts onboard.
* [[Kali/Persistent USB]]


MITM:
[[Dropbear/Unbricking]]
* MITMf
* SSLStrip
* urlsnarf, mailsnarf, etc - WOSIAB


General thread of things:
===new router===
* MITM
* Windows exploits
* Payload generation
* Remote shells
* C&C
* Metasploitable, etc.


===raspberry pi===
new router:
* website with database of embedded dev boards: [https://www.board-db.org/search.php?q=&ram_min=&cpu_speed_min=&cpu_cores=&cpu_arch=any&price_min=&price_max=&storage_min=&gpio_min=&usb_min=&type=&lan=on&multiple_lan=on&lan_speed=0&order=price&order_d=a#results board-db.org]
* Banana Pi R2 is designed with built-in switch hardware, so it's intended to be used as a Raspberry Pi for home routers, of sorts. Long term, this would be a good hardware platform.
* Banana Pi R2 Link: [https://www.aliexpress.com/item/BPI-R2-Banana-PI-R2-Smart-Open-source-Wireless-Router-BPI-R2-Smart-Home-Control-Device/32825598599.html]


Widget. LCD/lights/something.
===blog posts in progress===


Wireless weatherproof IP camera?
* Project Euler 172
 
* Project Euler 502
==in progress==
* bootstrap table presenting results of Rubik's Cube investigation - [[Rubiks Cube/Bootstrap]]
 
===blog posts===
 
* Blog posts:
** <s>Knuth permutation generation</s>
** <s>4x4 Rubik's Cube: Part 1: Representations</s>
** <s>4x4 Rubik's Cube: Part 2: Permutations</s>
** 4x4 Rubik's Cube: Part 3: Cycles
** Bots (RMM, Queneau)
 
** Google Data Engineering Certification blog post and notes highlights
** Data engineering scenario rollouts


===genealogy===
===genealogy===
Line 104: Line 121:
** <s>2011</s>
** <s>2011</s>
** <s>2017</s>
** <s>2017</s>
** Rename scheme
** <s>Rename scheme</s>
** Notes document initialized
** <s>Notes - A2k11</s>
** Notes - R2k11
** Notes - A2k17
** Notes - K2k17
** Notes - R2k17
* Send email to fam with link on Dropbox
* Send email to fam with link on Dropbox


Line 111: Line 132:
* Pauline and Bruce chapters
* Pauline and Bruce chapters
* Historical research planning
* Historical research planning
===notes===
* Shore up notes:
** Experiment design: https://git.charlesreid1.com/notes/experiment-design
** Linear models: https://git.charlesreid1.com/notes/linear-models
** Rubiks cube: https://git.charlesreid1.com/notes/rubiks-notes
[[2018/January/Notes Repositories]]


==complete==
==complete==
Line 142: Line 172:
===master git repos===
===master git repos===


<s>Create master repo for each organization - each repo in org as a submodule</s>
<s>
Master repo layout:
* Create master repo for each organization
* Each repo in org forms submodule
* Utility scripts to update to latest, and to commit latest</s>


===bots===
===bots===


* Tripos bot
* <s>Tripos bot</s>
** <s>Work out small page latex</s>
** <s>Work out small page latex</s>
** <s>Get questions into latex format</s>
** <s>Get questions into latex format</s>
Line 192: Line 226:
* copy python from debian
* copy python from debian
* apply changes, ensure nothing broken</s>
* apply changes, ensure nothing broken</s>
kali deployment:
rpi deployment:


<s>install scripts:
<s>install scripts:
Line 204: Line 234:


[[Dotfiles]]
[[Dotfiles]]
* https://charlesreid1.com:3000/dotfiles/vanilla
* https://git.charlesreid1.com/dotfiles/vanilla
* https://charlesreid1.com:3000/dotfiles/dotfiles-master
* https://git.charlesreid1.com/dotfiles/dotfiles-master
* https://charlesreid1.com:3000/dotfiles/rpi
* https://git.charlesreid1.com/dotfiles/rpi
* https://charlesreid1.com:3000/dotfiles/mac
* https://git.charlesreid1.com/dotfiles/mac
* https://charlesreid1.com:3000/dotfiles/kali
* https://git.charlesreid1.com/dotfiles/kali
* https://charlesreid1.com:3000/dotfiles/debian
* https://git.charlesreid1.com/dotfiles/debian
 
kali deployment and rpi deployment to be fixed later
 
===kali===
 
<s>Jupiter:</s>
* <s>2 TB hard drive</s> (ordered)
* <s>Debian (100 gb windows)</s>
* <s>Kali via persistent live usb configured for Jupiter</s>
 
<s>VPN:
* Charlesreid1 connection
* Anonymous layer PIA on dropbear
* Anonymous browsing notes, Privoxy, &c.
* [[Tinc]] VPN</s>
 
<s>Instrumentation:
* netdata
* network traffic</s>
 
<s>Networking tools:
* [[Kali Tools]] installation and workflow
* [[Bro]] installation</s>
 
===netdata===
 
<s>Netdata setup:
* Install Netdata on jupiter, basilisk, morpheus (eventually, raspberry pis)
* Netdata running on each, and Netdata instances accessible from on the network
* Install Prometheus on jupiter
* Connect Netdata on basilisk and morpheus to Prometheus on jupiter</s>
 
<s>VPN mesh network:
* [[Tinc]]
* Working okay on the home network.</s>
 
<s>Netdata security:
* Set up vpn via tinc on rojo
* Set up netdata on rojo
* Bind netdata to vpn ip address only
* Verify rojo netdata instance protected</s>
 
Digital ocean guide - what role does nginx play?
 
Focus on monitoring computational infrastructure, networking, security. Focus on DASHBOARDS.
 
[[Netdata/Security]]
 
[[Prometheus/Security]]
 
<s>Charlesreid1.com data
* Share netdata securely
* VPN connection to server
* Logs, network traffic, loading, pages, processes</s>
 
[[Netdata]]
 
[[Prometheus]]
 
===blog posts===
 
* <s>Knuth permutation generation</s>
* <s>4x4 Rubik's Cube: Part 1: Representations</s>
* <s>4x4 Rubik's Cube: Part 2: Permutations</s>
* <s>4x4 Rubik's Cube: Part 3: Cycles</s>
* <s>4x4 Rubik's Cube: Part 4: Orders</s>
 
===jupiter oopsie===
 
<s>recovering from an accidental chmod of the entire /usr/lib directory.
 
Oops. Good thing it wasn't on Rojo. Aaaaand, a good reason to have a partition for the home directory.
 
Then reinstall. Then no wireless. Then reinstall with network connection.
 
Then back to the same stupid problems I've been having. Non-root user, not a sudoer, correct drivers not included. All stupid Debian stuff.
 
Now... just... giving up. Back to Ubuntu. Everything's fine now.
 
Meanwhile, on morpheus, I had installed security onion, then given up and gone back to kali, and wireless also broke.
 
Airplane mode was stuck in "on" mode, no physical swtich.
 
Morpheus took a sudo apt-get update and sudo apt-get upgrade and a sudo apt-get dist-upgrade</s>
 
===kali live usb===
 
<s>[[Kali/Persistent USB]]
* question: how to persist e.g. keyboard preferences or installed software
* answer: no matter... figure out when we need to.</s>
 
===fixing widy===
 
widy:
* <s>widy is working okay as the central router
* need a backup if keeping it in place permanently
* complete the widy pivot to usb
* collectd
* nmap, ettercap, aircrack, etc.</s>
 
[[Widy]]
 
 


==Flags==
==Flags==

Latest revision as of 03:09, 9 October 2019

Task list for January:

in progress

data engineering

Data engineering scenarios

  • workflow with large amounts of data
  • collectd on widy and others
  • logging and log files
  • dashboards
  • Google Cloud/Review

network integration:

  • everything is related...
  • elasticsearch can search json, provides searchable interface to data
  • log data into json format (mongo)
  • collectd system metrics into json format (mongo)
  • bot monitoring metrics, other metrics.... all into json format (mongo)
  • then we just need to figure out the mongodb - grafana hookups

Master plan:

  • the master plan is emerging
  • elasticsearch link: [1]

2018/January/Data Engineering

kali networking

(on hold - tap hardware)

Network monitoring configuration setup:

Materials:

  • isp-provided router (internet-enabled port)
  • network tap device
  • network monitoring server on a separate management lan
  • "safe" gateway router for everybody

Set up the tap:

  • port 1 of the tap connects to isp
  • port 2 of the tap connects to safe router gateway, local wifi router
  • port 3 of the tap connects to the network monitor, which is receiving network traffic capture from the tap device

Bro:

  • Logs everything - but how to configure it? how to run it? what is the big picture?
  • How does it fit into the network architecture - is it analyzing the pile of packets that's coming in to the security onion server?

Network monitoring distros:

What this enables:

  • hardware level interception point
  • arp spoofing, mitm, honeypot, etc. - both an attack point and an observation point

Next steps:

  • Networks: MITM, wifi, evil ap, honeypot
  • metasploit, sslstrip, certificate, frankencert
  • focus on communications and networking
  • pw credentials wall of sheep in a box

charlesreid1 wiki

scraping page links and history into database

Pywikibot

fixing dropbear

dropbear un-bricking:

  • open the case
  • to unbrick the router, we need to install stuff on the raspberry pi.
  • to install stuff on the raspberry pi, we need to reflash the sd card.
  • to reflash the sd card, we need to figure out which image to flash with. (used kali.)
  • to get pi to join wifi, need to plug into physical network
  • to plug into physical network and access via lan, need to find the pi
  • to find the pi, need to install nmap on widy openwrt via opkg
  • to install nmap on widy, need to resolve bunch of missing opkg packags (resolved: packages and oldpackages split)
  • to get pi up and running and cleaned up, need to revisit old kali dotfiles (slew of work to do with new dotfiles repositories for kali raspberry pi)
  • once all that is done, then we can put build-essential on the pi
  • once we have build essential we can put the jtag software on the pi
  • tjtag pi: [2]
  • wiring diagram: [3]

Dropbear

Dropbear/Unbricking

new router

new router:

  • website with database of embedded dev boards: board-db.org
  • Banana Pi R2 is designed with built-in switch hardware, so it's intended to be used as a Raspberry Pi for home routers, of sorts. Long term, this would be a good hardware platform.
  • Banana Pi R2 Link: [4]

blog posts in progress

  • Project Euler 172
  • Project Euler 502
  • bootstrap table presenting results of Rubik's Cube investigation - Rubiks Cube/Bootstrap

genealogy

Genealogy photos:

  • Photos cropped/organized by family
    • 2011
    • 2017
    • Rename scheme
    • Notes - A2k11
    • Notes - R2k11
    • Notes - A2k17
    • Notes - K2k17
    • Notes - R2k17
  • Send email to fam with link on Dropbox

Writing:

  • Pauline and Bruce chapters
  • Historical research planning

notes

2018/January/Notes Repositories

complete

project euler

  • Project Euler:
    • Project Euler: Problem 172
    • Clean up problems 52-67

Project Euler/172

rubiks cube

2018/January/Rubiks Cube

desk reorg

Reorganize and rearrange desk

  • Move book boxes to room, move table from room to main area
  • Consolidate plastic tubs
  • Computer lab - 2 laptops + desktop
  • Switch to dropbear as the main router

master git repos

Master repo layout:

  • Create master repo for each organization
  • Each repo in org forms submodule
  • Utility scripts to update to latest, and to commit latest

bots

  • Tripos bot
    • Work out small page latex
    • Get questions into latex format
    • Script to compile latex to pdf, Imagemagick latex to jpg
    • Create Rainbow Mind Machine bot
    • Create Twitter account
    • Authenticate
    • Set up and run on Rojo
    • Debug - it's just not tweeting.
  • Apollo Bot
    • Fix lengths of dialogue per speaker
    • Make lengths of dialogue per speaker a parameter/variable for function/library in rainbow mind machine
    • Get back online
  • Milton Bot
    • Seems okay... but still having some permission problem
    • Problem was, could not access keys, b/c not run from correct directory.
    • Need to fix run_bots_in_screen.sh
    • Get back online
  • Ginsberg Bot
    • Seems okay, but permission problem (see above)
    • Get back online

Tripos Bot

dotfiles

dotfiles:

  • jupiter/rojo, maya/cronus, basilisk/morpheus, thing1/thing2
  • lite/vanilla/docker

dotfile submodules/organization:

  • one repo per machine (or machine "class") - debian, mac, kali, raspberry pi
  • organization over convenience - not as much sharing because generally static/fixed

debian deployment:

  • rojo copy dotfile changes over to debian repo
  • rojo apply changes, ensure nothing broken
  • jupiter apply changes, ensure nothing broken

mac deployment:

  • copy dotfiles from debian
  • copy python from debian
  • apply changes, ensure nothing broken

install scripts:

Dotfiles

kali deployment and rpi deployment to be fixed later

kali

Jupiter:

  • 2 TB hard drive (ordered)
  • Debian (100 gb windows)
  • Kali via persistent live usb configured for Jupiter

VPN:

  • Charlesreid1 connection
  • Anonymous layer PIA on dropbear
  • Anonymous browsing notes, Privoxy, &c.
  • Tinc VPN

Instrumentation:

  • netdata
  • network traffic

Networking tools:

netdata

Netdata setup:

  • Install Netdata on jupiter, basilisk, morpheus (eventually, raspberry pis)
  • Netdata running on each, and Netdata instances accessible from on the network
  • Install Prometheus on jupiter
  • Connect Netdata on basilisk and morpheus to Prometheus on jupiter

VPN mesh network:

  • Tinc
  • Working okay on the home network.

Netdata security:

  • Set up vpn via tinc on rojo
  • Set up netdata on rojo
  • Bind netdata to vpn ip address only
  • Verify rojo netdata instance protected

Digital ocean guide - what role does nginx play?

Focus on monitoring computational infrastructure, networking, security. Focus on DASHBOARDS.

Netdata/Security

Prometheus/Security

Charlesreid1.com data

  • Share netdata securely
  • VPN connection to server
  • Logs, network traffic, loading, pages, processes

Netdata

Prometheus

blog posts

  • Knuth permutation generation
  • 4x4 Rubik's Cube: Part 1: Representations
  • 4x4 Rubik's Cube: Part 2: Permutations
  • 4x4 Rubik's Cube: Part 3: Cycles
  • 4x4 Rubik's Cube: Part 4: Orders

jupiter oopsie

recovering from an accidental chmod of the entire /usr/lib directory.

Oops. Good thing it wasn't on Rojo. Aaaaand, a good reason to have a partition for the home directory.

Then reinstall. Then no wireless. Then reinstall with network connection.

Then back to the same stupid problems I've been having. Non-root user, not a sudoer, correct drivers not included. All stupid Debian stuff.

Now... just... giving up. Back to Ubuntu. Everything's fine now.

Meanwhile, on morpheus, I had installed security onion, then given up and gone back to kali, and wireless also broke.

Airplane mode was stuck in "on" mode, no physical swtich.

Morpheus took a sudo apt-get update and sudo apt-get upgrade and a sudo apt-get dist-upgrade

kali live usb

Kali/Persistent USB

  • question: how to persist e.g. keyboard preferences or installed software
  • answer: no matter... figure out when we need to.

fixing widy

widy:

  • widy is working okay as the central router
  • need a backup if keeping it in place permanently
  • complete the widy pivot to usb
  • collectd
  • nmap, ettercap, aircrack, etc.

Widy


Flags