Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Thursday, December 29, 2022
Black Mesa Interloper Level Crash - ed_alloc no free edicts
Enter:
ent_remove_all point_template
ent_remove_all prop_xen_grunt_pod
Tuesday, December 27, 2022
Monday, December 19, 2022
Kali Linux - Pyrit
Taken right from page:
these tools will help in wifi hacking through wifite. and the success rate will increasecooding------
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
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.htmlhttps://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
Wednesday, November 2, 2022
Black Mesa Controller Support
Monday, October 31, 2022
Project Euler Completed 50 questions
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.
Monday, August 15, 2022
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 spacesa1 = "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
Wednesday, April 27, 2022
Tails OS and Cryptocurrency Wallet
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:
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
This fixed it:
sudo apt install xfce4-settings
Install Visual Studio Code on Kali Linux
Delete Linux File with Special Characters in the Name
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
Tried to run a shell script in the folder /saycheese.
Output from Terminal Emulatormya55@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
Brain Playing Radio K-Fuck All Day Long
https://binaural-beats.en.uptodown.com/android/download https://apkgit.com/download/com.binauralbeats.freebooster_1.1_free I needed to do this in order to sideload the app to my Kindle Fire HD 6 (4th generation)
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:
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:
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
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.).
Go ahead. Feel free to steal my idea.
Monday, February 7, 2022
Generate a Non Fungible Token (NFT)
Thursday, January 20, 2022
Surge 2 - Metal Armor
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
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.