Widespread Augmented Reality

Widespread Augmented Reality
Click on the image to get the Android Augmented Reality Heads up Display

Thursday, December 29, 2022

Black Mesa Interloper Level Crash - ed_alloc no free edicts

Hit ~ for developer console

Enter:

ent_remove_all point_template

ent_remove_all prop_xen_grunt_pod

Monday, December 19, 2022

Kali Linux - Pyrit

https://fb.watch/hwRJHD8Hrb/

Taken right from page:

these tools will help in wifi hacking through wifite. and the success rate will increase
cooding------
Commands for installing hcx dump tool------
sudo git clone https://github.com/ZerBea/hcxdumptool
sudo apt install libssl-dev
cd hcxdumptool
sudo make
sudo make install
// I added here that you should cd .. back out of hcxdumptool directory
commands for installing hcxtool------
sudo git clone https://github.com/ZerBea/hcxtools
cd hcxtools
sudo apt install libz-dev
cd ..
sudo apt install libcurl4-gnutls-dev
cd hcxtools
sudo make
sudo make install
Commands for installing Pyrit-------
sudo apt-get install libcap-dev
sudo apt-get install python2.7-dev libssl-dev zlib1g-dev libcap-dev
/// I also needed sudo apt-get install libpcap-dev
sudo git clone https://github.com/JPaulMora/Pyrit.git
cd Pyrit
sudo python setup.py clean
// I used sudo python2 setup.py clean
sudo python setup.py build
// I used sudo python2 setup.py build
sudo python setup.py install
// I used sudo python2 setup.py install
#KaliLinux
#kalilinux
#Linux
#how_to
#hcxtool
#hcxdumptool
#pyrit
#ethicalhacking
#cybersecurity
#ITsecurity

Kali Linux Desktop Menu Panel Suddenly Went Missing

Monday, November 14, 2022

Neutrinos

"1931 - A hypothetical particle is predicted by the theorist Wolfgang Pauli. Pauli based his prediction on the fact that energy and momentum did not appear to be conserved in certain radioactive decays. Pauli suggested that this missing energy might be carried off, unseen, by a neutral particle which was escaping detection."

- https://web.archive.org/web/20100925101827/http://www.ps.uci.edu/~superk/neutrino.html

https://icecube.wisc.edu/news/press-releases/2022/11/icecube-neutrinos-give-us-first-glimpse-into-the-inner-depths-of-an-active-galaxy/

https://cdn.journals.aps.org/files/RevModPhys.75.985.pdf

Monday, October 31, 2022

Project Euler Completed 50 questions

Under user name shimart96. Project Euler

I sought optimization help on a few of the questions and a couple of them I would not have got no matter how long I stared at the problem.

Friday, August 5, 2022

Python Dynamic Numbered Variables in Loop

I am probably doing this in the most inefficient way possible, but the code is simply to demonstrate how to run through a counter and add the number incrementally on to the end of a variable. For instance I just want to add a number at the end of string "a" and read the variable "a1" through "a4".

#Putting string literal of numbers into an array separated by spaces
a1 = "3".split(" ")
a2 = "7 4".split(" ")
a3 = "2 4 6".split(" ")
a4 = "8 5 9 3".split(" ")
#print(a1[0])
sum = 0
y = 1
x = 0
#Read each of the above "a" variables 1 through 4
while y < 5:
if y == 1:
# sum = a1[0]
sum = locals()[f"a{y}"][x]
else:
# if a2[0] >= a2[1]
if locals()[f"a{y}"][x] >= locals()[f"a{y}"][x+1]:
sum = sum + locals()[f"a{y}"][x]
else:
sum = sum + locals()[f"a{y}"][x+1]
x+=1
y+=1
print(sum)
# output is 3749
sumint = 0
for i in range(0, len(sum)):
sumint = sumint + int(sum[i])
print(sumint)
# output is 23
# the last step of sumint could have been saved by using
# int(locals()[f"a{y}"][x])

Saturday, July 30, 2022

Life in Python Recursive

def life(years):
while years > 0:
return life(years-1)
years = 110
life(years)

Sunday, July 10, 2022

Python Fibonacci

fibs = []
for i in range(20):
fibs.append(i) if (i==0) or (i==1) else fibs.append(fibs[i-1] + fibs[i-2])
i += 1
print(fibs)

[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181]

Monday, June 6, 2022

Change an Image Background to Transparent

I have an image that has a background and I want to use that image on top of a second image. Therefore I need the first image to have a transparent background. Use Magic Select in Microsoft's 3D Paint program. Open the image that needs to be cropped with a transparent background. In my case it is a bandana that has a checkered background. Click Magic Select.
Use cursor to adjust the selection to fit the bandana.
Drag image and right click to copy on to the second image.

Wednesday, April 27, 2022

Tails OS and Cryptocurrency Wallet

I currently have a self custody Coinbase wallet that I access through a Chrome browser extension.
What I want is a cold wallet that is detached from the internet.
Since I am a geek, I do not want to purchase a cold wallet like the ones at https://www.guru99.com/best-crypto-cold-wallets.html
Instead, I would like to create a USB wallet, which turns out to be simply a live OS that has a crypto wallet installed.
List of components:
  • 16 GB Flash drive
  • https://www.balena.io/etcher/
  • Learn about Tails: https://tails.boum.org/
  • Download Tails: https://tails.boum.org/install/download/index.en.html
  • Installing to USB from Windows: https://tails.boum.org/install/windows/index.en.html
  • Create persistence storage on USB: https://tails.boum.org/doc/first_steps/persistence/index.en.html
  • Create cryptocurrency wallet: https://www.securitybind.com/make-your-own-cold-storage-usb-crypto-wallet/
  • Once again BalenaEtcher flashes the USB successfully, but the USB is not bootable. Now I must fix the USB drive, so search for "diskpart" on this blog for instructions.

    After cleaning and repartitioning using diskpart, I then reformatted the USB drive through Windows with NTFS as the format.

    I will now trying creating a bootable USB drive with https://rufus.ie/en/#google_vignette

    After Rufus succesfully flashed the USB drive, I held down the [Shift] key and clicked Windows Restart

    Voila! Tails booted from the USB drive. Now on to creating persistence and installing a cryptocurrency wallet.

    Sunday, April 24, 2022

    Kali Linux - Failed to Launch Preferred Application for Terminal Emulator

    After sudo apt update && upgrade, I was unable to open folders by simply clicking on them nor once inside a folder was I able to right click for a menu and open the terminal application inside the folder.
    This fixed it:
    sudo apt install xfce4-settings

    Install Visual Studio Code on Kali Linux

    Culled from https://www.geeksforgeeks.org/install-visual-studio-code-in-kali-linux/
  • sudo apt update
  • sudo apt install software-properties-common apt-transport-https
  • wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
  • sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
  • sudo touch /etc/apt/sources.list.d/vscode.list
  • echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main' | sudo tee -a /etc/apt/sources.list.d/vscode.list
  • sudo apt update
  • sudo apt install code
  • Delete Linux File with Special Characters in the Name

    I mistakenly created a file called "vscode.list'". Note that there is a single quote appended to the last character. This will create a problem when trying to execute rm vscode.list'.
    This is the workaround as executed through the terminal command line.
    root@mya55:/etc/apt/sources.list.d# ls
    google-chrome.list vscode.list vs.code.list'
    root@mya55:/etc/apt/sources.list.d# ls -li
    total 8
    3933142 -rwxr-xr-x 1 root root 190 Nov 11 14:26 google-chrome.list
    3933031 -rw-r--r-- 1 root root 129 Apr 23 18:38 vscode.list
    3933030 -rwxr-xr-x 1 root root 0 Apr 24 2022 vscode.list’
    root@mya55:/etc/apt/sources.list.d# find . -inum 3933030 -exec rm -v {} \;
    removed './vscode.list’'
    root@mya55:/etc/apt/sources.list.d# ls
    google-chrome.list vscode.list
    root@mya55:/etc/apt/sources.list.d#

    Sunday, April 3, 2022

    bash: ./saycheese.sh: Permission denied

  • https://kalilinuxtutorials.com/saycheese/
  • https://baasith-shiyam1.medium.com/how-to-hack-into-a-phone-camera-kali-linux-7618da3149d1
  • https://github.com/hangetzzu/saycheese
  • Tried to run a shell script in the folder /saycheese.

    Output from Terminal Emulator

    mya55@mya55:~/saycheese$ ./saycheese.sh
    bash: ./saycheese.sh: Permission denied

    mya55@mya55:~/saycheese$ getfacl saycheese.sh
    # file: saycheese.sh
    # owner: mya55
    # group: mya55
    user::rw-
    group::r--
    other::r--

    mya55@mya55:~/saycheese$ chmod u+x saycheese.sh
    mya55@mya55:~/saycheese$ getfacl saycheese.sh
    # file: saycheese.sh
    # owner: mya55
    # group: mya55
    user::rwx
    group::r--
    other::r--

    Thursday, March 24, 2022

    Sunday, March 6, 2022

    Successfully minted NFT to Ethereum Ropsten Network

    Using only my linux laptop, I wanted to send an NFT to the Ethereum block chain in order to better understand the process. After checking out several on-line tutorials and failing, I went straight to the source and followed the steps in the following web pages:

      1. https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/
      2. https://ethereum.org/en/developers/tutorials/how-to-mint-an-nft/
      3. https://ethereum.org/en/developers/tutorials/how-to-view-nft-in-metamask/

    My previous attempts may have failed because there were too many steps including creating a web app on my laptop, starting localhost http://localhost:3000/, putting the NFT MetaData file at http://localhost:3000/api/erc721/, and then making that file available to the internet using ngrok. Somewhere in there, I am sure there was a typo or a piece missing.

    The Ethereum tutorials uploaded the actual NFT image and the NFT meta data to Pinata so there was no need to open up my laptop to the internet. Moreover since I am not creating a production ready NFT, I used my own website at http://spideronfire.com to store the actual image and the meta data

    Essentially this is what happens:

  • Create a smart contract
  • Make it Ethereum compliant with OpenZeppelin, Hardat and ethers
  • Connect to Ethereum through the Alchemy Node
  • Send the smart contract to the Alchemy node through your MetaMask wallet
  • Wait for Alchemy to validate the transaction
  • Get the contract address from Alchemy or https://ropsten.etherscan.io/
  • Mint the NFT using the contract address and a meta data file
  • The meta data file has a url to the actual image file

  • The following is a dump of the steps that I took so I can refer back to them after I forget what I did 5 minutes from now.
    1. Sign into Alchemy with google
    https://dashboard.alchemyapi.io/apps/d8wedo96vjsesxnw
    2. MetaMask Chrome extension connected to Ropsten Network
    Wallet funded with fake wei
    3. mkdir nft-project2
    4. cd nft-project2 and open terminal
    5. mya55@mya55:~/nft-project2$ npm init
    6. mya55@mya55:~/nft-project2$ npm install --save-dev hardhat
    7. mya55@mya55:~/nft-project2$ npx hardhat
    8. Select “create an empty hardhat.config.js”:
    9. mya55@mya55:~/nft-project2$ mkdir contracts
    10. mya55@mya55:~/nft-project2$ mkdir scripts
    11. Create contracts/MyNFT.sol and paste code
    12. remove the word Ownable on line 10 and onlyOwner on line 17 ?
    13. constructor() ERC721("SpiFiGen", "SFG")
    14. mya55@mya55:~/nft-project2/contracts$ npm install @openzeppelin/contracts
    15. mya55@mya55:~/nft-project2$ npm install dotenv --save
    16. create .env file in /nft-project2/
    17. Populate with Alchemy and MetaMask keys
    18. /nft-project2$ npm install --save-dev @nomiclabs/hardhat-ethers ethers@^5.0.0
    19. UPDATE HARDHAT.CONFIG.JS
    20. mya55@mya55:~/nft-project2$ npx hardhat compile
    21. Create /scripts/deploy.js
    22. mya55@mya55:~/nft-project2$ npx hardhat --network ropsten run scripts/deploy.js
    23. Compiled 1 Solidity file successfully
    Contract deployed to address: 0x157FCaD0869E00E1412C3af5C6AC21f7D22c8783
    24. https://ropsten.etherscan.io/
    25. END: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/
    26. Start: https://ethereum.org/en/developers/tutorials/how-to-mint-an-nft/
    27. mya55@mya55:~/nft-project2$ npm install @alch/alchemy-web3
    28. /scripts/ CREATE A MINT-NFT.JS FILE
    29. Code with ABI file location and contract address from etherscan.io
    30. contract: 0x157fcad0869e00e1412c3af5c6ac21f7d22c8783
    31. mintNFT("https://spideronfire.com/SpiFiGen/metadata.js")
    instead of IPFS Pinata upload
    32. node scripts/mint-nft.js
    33. The hash of your transaction is:
    0x86c7937597433eb4f9de36902081baf6849e2bbd6f0952730d8423a34ac360a2
    Check Alchemy's Mempool to view the status of your transaction!
    34. https://dashboard.alchemyapi.io/mempool
    35. Start https://ethereum.org/en/developers/tutorials/how-to-view-nft-in-metamask/
    36. Open MetaMask Android. Ropsten Network. Import NFT from contract address
    37. It WORKED!

    Tuesday, March 1, 2022

    Kali Linux Install Node

    Steps culled from https://www.freecodecamp.org/news/how-to-install-node-in-your-machines-macos-linux-windows/
  • Open terminal: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
  • Close terminal
  • Open terminal: nvm ls
  • Same terminal: nvm install 12.18.1
  • Same terminal: nvm use 12.18.1
  • Same terminal: node -v
  • Uninstall Node: rm -rf $NVM_DIR ~/.npm ~/.bower

  • Thursday, February 24, 2022

    The SpiderOnFire NFT Drop Strategy

    This seems like a natural fit since the creator of W.A.R. (me under the purview of SpiderOnFire) envisioned dead drops as a possible application when first releasing the W.A.R. app in 2012.

    SpiderOnFire will be minting W.A.R. NFTs through its page https://spideronfire.com/makenft.php

    Here is how we would like to integrate the NFT world into our metaverse a.k.a. Widespread Augmented Reality (W.A.R.).

  • Drop SpiderOnFire NFTs under private handles at physical locations.
  • W.A.R. users within 3 miles of these locations will be able to tap on the NFT geotag in their heads up display and start a redeem process.
  • Still hashing out the redeem process.
  • Maybe the first user to tap on the NFT geotag will own it with a signed transaction sent to a blockchain.
  • Maybe subsequent taps will trigger a bid to buy the NFT geotag.
  • Still hashing out the incentive or motivation.
  • Perhaps this is finally a way to gamify and monetize the W.A.R. app.
  • Go ahead. Feel free to steal my idea.

    Monday, February 7, 2022

    Thursday, January 20, 2022

    Surge 2 - Metal Armor

    After 2 weeks of frustration trying to defeat the Metal Armor boss in Surge 2, I found this: https://cheatevolution.com/downloads.php

    Downloaded the file, unzipped the file, double clicked "CheatEvolution.exe", searched Surge 2, turned on unlimited health after starting the Steam game, and I finally got through the Metal Armor boss in Surge 2. Can't wait to use this tool to just complete the darn thing and uninstall it. I suck at poke, dodge and parry game play. Just don't have the patience nor is the repetition fun.

    This is me all armored up with a bad ass weapon, and I still suck

    Thursday, January 13, 2022

    How Big is 2**256 ( 2 to the power of 256)

    Excerpt from the book Programming Bitcoin by Jimmy Song

    How Big is 2**256?

    2**256 doesn’t seem that big because we can express it succinctly, but in reality, it is an enormous number. To give you an idea, here are some relative scales:
    2**256 ~ 10**77

  • Number of atoms in and on Earth ~ 10**50
  • Number of atoms in the solar system ~ 10**57
  • Number of atoms in the Milky Way ~ 10**68
  • Number of atoms in the universe ~ 10**80

  • A trillion (10**12) computers doing a trillion computations every trillionth (10 **–12) of a second for a trillion years is still less than 10**56 computations. Think of finding a private key this way: there are as many possible private keys in Bitcoin as there are atoms in a billion galaxies.

    Friday, January 7, 2022

    Kali Linux Add HP Printer

  • First of all going here: https://support.hp.com/us-en/document/c01174360 did not work.
  • Followed these steps from here: https://subba-lakshmi.medium.com/how-to-install-and-configure-printers-on-kali-linux-78a0476b3cfe
  • sudo apt-get install cups cups-client "foomatic-db"
  • sudo /usr/sbin/adduser root lpadmin
  • sudo /usr/sbin/adduser s33me lpadmin
  • sudo service cups restart
  • sudo systemctl enable cups
  • sudo systemctl start cups
  • Navigate to http://127.0.0.1:631/
  • [Administration] [add printer]
  • The only snafu was setting the default print settings to "draft-grayscale". This caused a "filter" error. After specifying print quality as "normal", my text document printed out; however, I do not want to spend a great deal of ink printing out test code. Naturally, I will eventually have to find a way to print at draft quality, or reboot into Windows and print from there.