Category: General

  • Creating Private Nameservers at Enom.com

    Creating Private Nameservers at Enom.com

    Private Name servers or vanity name servers are name servers like ns1.your-domain.com and ns2.your-domain.com. If you have used shared hosting, you may have seen hosting providers have name servers with their domain name. If you own a domain name, it is possible to create custom name servers with your domain registrar.

    To register a name server, log in to your enom.com account at

    https://cp.enom.com/login.aspx

    Once logged in, Under the Domains menu, click Advanced Tools, and then click Register a Name Server.

    enom register name server

    On the next page, you need to enter the name server you need to register and the IP address for the name server.

    enom custom nameserver

    Once you enter nameserver and IP address, click on “Register Name server”.

    After the nameserver is created, you need to add an A record for the nameserver, this needs to be done with your DNS provider.

    Back to nameserver for instruction on how to register/change name servers at various other domain registrars.

  • How to find all subdomains of a domain

    How to find all subdomains of a domain

    Subfinder is a subdomain discovery tool that discovers valid subdomains for websites by using passive online sources. It has a simple modular architecture and is optimized for speed. subfinder is built for doing one thing only – passive subdomain enumeration, and it does that very well.

    Subfinder is designed to comply with all passive sources licenses, and usage restrictions, as well as maintaining a consistently passive model to make it useful to both penetration testers and bug bounty hunters alike.

    https://github.com/projectdiscovery/subfinder

    To run the software using docker, first install docker on your computer. You can find instructions to install docker at

    https://serverok.in/docker

    Pull the docker image with the command

    docker pull projectdiscovery/subfinder:latest
    

    To find all subdomains of a domain, run

    docker run -t projectdiscovery/subfinder:latest -d DOMAIN_NAME_HERE
    

    find all subdomains

  • documentation

    Sphinx is a tool that makes it easy to create intelligent and beautiful documentation.

    https://www.sphinx-doc.org/

  • How to verify rDNS (reverse DNS)/PTR Record

    How to verify rDNS (reverse DNS)/PTR Record

    RDNS (Reverse DNS) resolves an IP address to a domain name. To find rDNS for an IP address, you can use the command nslookup.

    nslookup IP_ADDR_HERE
    

    check rdns with nslookup

    In the above screenshot, IP address 51.38.246.115 have reverse DNS set to ok.serverok.in

    You also need to verify the hostname points to IP address. Many server providers check this before settings reverse dns entry.

    root@server12:~# nslookup ok.serverok.in
    Server:		213.133.99.99
    Address:	213.133.99.99#53
    
    Non-authoritative answer:
    Name:	ok.serverok.in
    Address: 51.38.246.115
    
    root@server12:~# 
    

    Find rDNS using dig command

    To find rDNS of an IP address, use the command

    dig +short -x IP_ADDR_HERE
    

    Example

    root@server12:~# dig +short -x 51.38.246.115
    ok.serverok.in.
    root@server12:~# 
    root@server12:~# dig +noall +answer -x 51.38.246.115
    115.246.38.51.in-addr.arpa. 86400 IN	PTR	ok.serverok.in.
    root@server12:~# 
    

    Find rDNS using host command

    host IP_ADDR_HERE
    

    Example

    root@server12:~# host 51.38.246.115
    115.246.38.51.in-addr.arpa domain name pointer ok.serverok.in.
    root@server12:~# 
    

    Back to Reverse DNS

  • automation

    https://n8n.io/ – n8n.io is a free and open-source workflow automation tool that lets you connect anything to everything. It is a node-based platform, which means that you can create workflows by connecting different nodes together. Each node represents a different task or action, such as sending an email, posting a message to Slack, or creating a new record in a CRM system.

    back to scripts

  • Visual Code Studio Missing Tabs for Open Files

    Visual Code Studio Missing Tabs for Open Files

    Sometimes working on Visual Code Studio, I lose Tabs shown on top of the editor, this happens when I type, maybe I press some key combination by accident. Once this happened, Visual Codde Studio won’t show tabs for all the open documents, instead, it just shows a tab for the active document.

    visual code studio tabs missing

    To fix this, click on the “Wheel” icon in the bottom-left corner of Visual Code Studio.

    Visual Code Studio Settings

    Select Settings from the popup menu. On the next page, search for “Show Tabs”.

    Visual Code Studio Show Tabs

    If the checkbox is not selected, select it. There are user-level settings for this also, if that is disabled, you will see a warning message here, you can click on it to enable ‘Show Tabs” in user-level settings.

    Back to Visual Code Studio

  • Unmetered Dedicated Server Providers

    LARGE SITES AND HOSTS

    • xvideos.com – leaseweb for videos
    • redtube.com – choopa.com
    • zshare.net – choopa.com
    • tube8.com – WEBAZILLA.COM
    • xhamster.com – iptp.net
    • eskimotube.com – caro.net
    • aebn.net – caro.net
  • How to find Memory (RAM) available on a Linux Server

    To find memory, use the free command.

    free -m
    

    Will show memory in MB.

    The following is free -m on a server with 8 GB RAM.

    boby@sok-01:~$ free -m
                  total        used        free      shared  buff/cache   available
    Mem:           7949        5560         715         137        1673        1984
    Swap:          9536        2660        6876
    boby@sok-01:~$ 
    

    To display memory usage in a human friendly way, use

    free -h
    

    Example

    boby@sok-01:~$ free -h
                  total        used        free      shared  buff/cache   available
    Mem:          7.8Gi       5.4Gi       686Mi       143Mi       1.6Gi       1.9Gi
    Swap:         9.3Gi       2.6Gi       6.7Gi
    boby@sok-01:~$ 
    
  • Local and remote exploit

    What is Local Exploit?

    A local exploit is a vulnerability in a Linux system that allows an ordinary user to gain root privileges by performing a certain sequence of actions. Generally, these exploits occur when a privileged application contains a bug that does not perform sufficient checks on the user before executing a command with root access.

    Local exploits do not by themselves allow intruders into the system, since an ordinary user account is needed first. However, it is often possible to gain this user access to a system if a password policy is not enforced or if the system provides user accounts as a service, for example, web hosting servers.

    What is Remote Exploit?

    Remote Exploit allows a hacker to get access on a server. Depending on what service is exploited, hackers will get user or root privileges on the exploited server. Sometimes, it is user privileges, then the hacker scans the server for any known Local Exploit, if he found one, he uses that to get root access on the server. Once a hacker gets root access they install rootkit (backdoors), that allow him to login and work on the server without tracked by the server administrator or other users.