This file contains hidden or 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
| Time to code it: 50 minutes, raw only builtin core python modules used. | |
| pwnall@pwnall-desktop:~$ python fbtest.py | |
| Tyrannosaurus Rex | |
| Velociraptor | |
| Struthiomimus | |
| Hadrosaurus | |
| pwnall@pwnall-desktop:~$ cat fbtest.py | |
| #!/usr/bin/env python |
This file contains hidden or 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
| 2016 Mustang GT | |
| Original MSRP $36,500 | |
| odo 2,500 miles. (Barely driven, garage kept) | |
| 6R80 auto trans tuned for 7600 rpm shifts., | |
| soft limit with paddles in sport is 7900 rpm | |
| hard limit with paddles in sport is 8200 rpm | |
| Mods: | |
| weight reduction |
This file contains hidden or 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
| export PBR_VERSION=1.10.0 | |
| export CRATON_URL=http://104.130.4.171:80/v1 | |
| export OS_PROJECT_ID=c4555e4f-2100-4d04-a9f2-28dfe8e3c013 | |
| export OS_USERNAME=bootstrap | |
| export OS_PASSWORD=e76c6f9903793c756ec9dbe4b18ff4de |
This file contains hidden or 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
| (venv) root@pwnall-craton:/opt/craton-api/craton/etc# craton-dbsync –config-file=/opt/craton-api/craton/etc/craton-api.conf bootstrap | |
| usage: craton-dbsync [-h] [--config-dir DIR] [--config-file PATH] | |
| {upgrade,stamp,revision,version,create_schema,bootstrap} | |
| ... | |
| craton-dbsync: error: argument command: invalid choice: '–config-file=/opt/craton-api/craton/etc/craton-api.conf' (choose from 'upgrade', 'stamp', 'revision', 'version', 'create_schema', 'bootstrap') |
This file contains hidden or 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
| #!/bin/bash | |
| source /opt/craton-api/venv/bin/activate | |
| mysql -u root -e "DROP DATABASE craton" | |
| mysql -uroot -e "CREATE DATABASE craton CHARACTER SET = 'utf8'" | |
| mysql -uroot -e "GRANT ALL PRIVILEGES ON craton.* TO 'craton'@'%' IDENTIFIED BY 'craton'" | |
| mysqladmin flush-privileges | |
| ############### |
This file contains hidden or 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
| {'Manufacturer': 'Samsung', 'Set': 'None', 'Rank': '1', 'Data Width': '64 bits', 'Part Number': 'M393B2G70QH0-', 'Type': 'DDR3', 'Bank Locator': 'Node0_Bank0', 'Speed': '1600 MHz', 'Error Information Handle': 'Not Provided', 'Configured Clock Speed': '1600 MHz', 'Locator': 'A0', 'Serial Number': '121A3AF8', 'Total Width': '72 bits', 'Asset Tag': 'Dimm0_AssetTag', 'Type Detail': 'Registered (Buffered)', 'Array Handle': '0x001D', 'Form Factor': 'DIMM', '_title': 'Memory Device', 'Size': '16384 MB'} |
This file contains hidden or 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
| 00:00.0 Host bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 DMI2 (rev 04) | |
| 00:01.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1a (rev 04) | |
| 00:02.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2a (rev 04) | |
| 00:02.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2b (rev 04) | |
| 00:02.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2c (rev 04) | |
| 00:02.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2d (rev 04) | |
| 00:03.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3a (rev 04) | |
| 00:03.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3b (rev 04) | |
| 00:03.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3c (rev 04) | |
| 00:03.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3d (rev 04) |
This file contains hidden or 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
| ['/dev/sda', '/dev/sdb', '/dev/sdc'] | |
| [{'Serial Number': '20150703AA9991436015', 'Transport': 'Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0', 'Model Number': 'SATADOM-SH TYPE C 3SE', 'Firmware Revision': 'S130604'}, {'LBA user addressable sectors': '62533296', 'Nominal Media Rotation Rate': 'Solid State Device', 'device size with M = 1024*1024': '30533 MBytes', 'Physical Sector size': '512 bytes', 'CHS current addressable sectors': '16514064', 'Logical Sector-0 offset': '0 bytes', 'Form Factor': '2.5 inch', 'LBA48 user addressable sectors': '62533296', 'Logical Sector size': '512 bytes', 'device size with M = 1000*1000': '32017 MBytes (32 GB)'}] | |
| [{}, {'device size with M = 1024*1024': '0 MBytes', 'device size with M = 1000*1000': '0 MBytes', 'Logical/Physical Sector size': '512 bytes'}] | |
| [{}, {'device size with M = 1024*1024': '0 MBytes', 'device size with M = 1000*1000': '0 MBytes', 'Logical/Physical Sector size': '512 bytes'}] |
This file contains hidden or 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
| Proposal for osops repo | |
| https://github.com/pwnall1337/ops-generic (mock up) repo | |
| libraries go into osops_common/ | |
| pip install ./ops-generic will install osops_common to the pythong dist-packages on the system. | |
| all tools will import osops_common libraries. |
This file contains hidden or 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
| 17: 'memory device', | |
| 19: 'memory array mapped address', | |
| 24: 'hardware security', | |
| 25: 'system power controls', | |
| 27: 'cooling device', | |
| 32: 'system boot', | |
| 41: 'onboard device', | |
| } | |
| data=[] | |
| lines=iter(content.strip().splitlines()) |