nmap -PN -n -v -p 80,3306 192.168.254.50
Check for PXE Services:
sudo nmap -sU -p 67,68,69,4011 192.168.4.100
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
nmap -PN -n -v -p 80,3306 192.168.254.50
Check for PXE Services:
sudo nmap -sU -p 67,68,69,4011 192.168.4.100
To write debugging information to the browser console, add a helper function as follows;
then simply do;
[source]
To see which version of java is installed, do;
java -version
with an example of the output being;
java version "17.0.4" 2022-07-19 LTS
Java(TM) SE Runtime Environment (build 17.0.4+11-LTS-179)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.4+11-LTS-179, mixed mode, sharing)
If we want to change the default version, first do;
/usr/libexec/java_home -V
an example of the output is;
Matching Java Virtual Machines (2):
17.0.4 (x86_64) "Oracle Corporation" - "Java SE 17.0.4" /Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home
11.0.15.1 (x86_64) "Oracle Corporation" - "Java SE 11.0.15.1" /Library/Java/JavaVirtualMachines/jdk-11.0.15.1.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home
then if we wanted to change it, we would do;
export JAVA_HOME='/usr/libexec/java_home -v 11.015.1'
The above is untested.
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT privilege ON database.table TO 'username'@'%';
The above can be combined into one as;
GRANT privilege ON database.table TO 'username'@'%' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE ON my_database.* TO 'username'@'localhost';
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
To grant basic permissions on a specific database or table. for example;
GRANT EXECUTE ON database.* TO 'username'@'%';
which would allow the username to run procedures in the specified database and nothing else.
The following may also be of use;
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password';
GRANT GRANT OPTION ON *.* TO 'username'@'%';
Example:
hdiutil makehybrid -iso -joliet -o LIC.iso LIC.cdr
To return to the default directory, do;
SET DEF DFCROOT:[000000]
or SET DEF [-]
DIR *.DIR
Shows all sub directories.
DIR /SIZE/DATE
Shows file size and date attributes.
To change to a directory normally do;
SET DEF [dir_name] or [dir_name.sub_dir_name]
where a directory is denoted by a .DIR extension.
Random stuff;
@SYS$UPDATE:VMSLICENSE.COM
See also here
To configure TCPIP, do @TCPIP$CONFIG
To start networking at boot time, add the following to STARTUP_VMS.COM by doing EDIT STARTUP_VMS.COM
@SYS$STARTUP:TCPIP$STARTUP
A note on the Alpha, TCPIP PING doesn't seem to work, however see UCX HELP
DELETE FILE.EXT;5
Deletes FILE.EXT version 5
PURGE /KEEP=100 FILE.EXT
Deletes FILE.EXT, keeping the 100 latest versions of the file.
To INITIALIZE a DISK;
INITIALIZE HN1$DKA100 DATA
where the output of SHOW DEVICE shows HN1$DKA100 UNDER Name.
Afterwords, we can mount the disk as;
MOUNT DKA100 DATA where DATA is the label
To mount a CDROM showing as DKA100, use;
MOUNT /override=ident DKA100
Show network connections;
UCX show device_socket /port=3307
We can then exit UCX and do show device xxxxx /full (where device is shown in previous output)
show system/proc="log"/full will
show process "LOGS" /continuous shows us the path to LOGS