22 ago 2020

Linux Command Line Hackery Series - Part 4




Welcome back to Linux Command Line Hackery, hope you have enjoyed this series so far. Today we are going to learn new Linux commands and get comfortable with reading text files on Linux.

Suppose that you wanted to view your /etc/passwd file. How will you do that? From what we have learned so far what you'll do is type:

cat /etc/passwd

And there you go, but really did you see all the output in one terminal? No, you just ended up with last few lines and you'll have to cheat (i,e use graphical scroll bar) in order to see all the contents of /etc/passwd file. So is there a command line tool in linux with which we can see all the contents of a file easily without cheating? Yes, there are actually a few of them and in this article we'll look at some common ones.

Command: more
Syntax:  more [options] file...
Function: more is a filter for paging through text one screenful at a time. With more we can parse a file one terminal at a time or line by line. We can also go backward and forward a number of lines using more.

So if we're to use more on /etc/passwd file how will we do that? We'll simply type

more /etc/passwd

now we'll get a screenful output of the file and have a prompt at the bottom of terminal. In order to move forward one line at a time press <Enter Key>. Using enter we can scroll through the file one line at a time. If you want to move one screen at a time, you can press <Space Key> to move one screen at a time. There are more functions of more program, you can know about them by pressing <h key>. To exit out of more program simply type <q key> and you'll get out of more program.

Command: less
Syntax: less [options] file...
Function: less is similar to more but less has more functionality than more. less is particularly useful when reading large files as less does not have to read the entire input file before starting, so it starts up quickly than many other editors.

less command is based on more so what you've done above with more can be done with less as well. Try it out yourself.

Command: head
Syntax: head [OPTION]... [FILE]...
Function: head command prints the head or first part of a file. By default head prints out first 10 lines of a file. If more than one file is specified, head prints first 10 lines of all files as a default behavior.

If we want to see only first 10 lines of /etc/passwd we can type:

head /etc/passwd

We can also specify to head how many lines we want to view by using the -n flag. Suppose you want to see first 15 lines of /etc/passwd file you've to type:

head -n 15 /etc/passwd

Ok you can view the first lines of a file what about last lines, is there a tool for that also? Exactly that's what our next command will be about.

Command: tail
Syntax: tail [OPTION]... [FILE]...
Function: tail is opposite of head. It prints the last 10 lines of a file by default. And if more than one file is specified, tail prints last 10 lines of all files by default.

To view last 10 lines of /etc/passwd file you'll type:

tail /etc/passwd

and as is the case with head -n flag can be used to specify the number of lines

tail -n 15 /etc/passwd

Now one more thing that we're going to learn today is grep.

Command: grep
Syntax: grep [OPTIONS] PATTERN [FILE...]
Function: grep is used to search a file for lines matching the pattern specified in the command.

A PATTERN can simply be a word like "hello" or it can be a regular expression (in geek speak regex). If you aren't familiar with regex, it's ok we'll not dive into that it's a very big topic but if you want to learn about it I'll add a link at the end of this article that will help you get started with regex.

Now back to grep say we want to find a line in /etc/passwd file which contains my user if we'll simply type:

grep myusername /etc/passwd

Wohoo! It gives out just that data that we're looking for. Remember here myusername is your username.
One cool flag of grep is -v which is used to look in file for every line except the line containing the PATTERN specified after -v [it's lowercase v].

Take your time practicing with these commands especially grep and more. We'll learn a lot more about grep in other upcoming articles.

References:
https://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/
Awesome website to learn Regular expressions - http://www.regexr.com/

Read more


  1. Hacking Tools
  2. Best Hacking Tools 2019
  3. Hacker Tools List
  4. Nsa Hack Tools Download
  5. Underground Hacker Sites
  6. Pentest Tools Github
  7. Best Pentesting Tools 2018
  8. Hacking Tools Pc
  9. How To Hack
  10. Hacker Tools Free
  11. Hacking Tools 2020
  12. Tools Used For Hacking
  13. Pentest Tools Url Fuzzer
  14. Pentest Recon Tools
  15. Computer Hacker
  16. Hack Tools For Mac
  17. Pentest Tools Android
  18. Pentest Tools For Android
  19. Pentest Tools Url Fuzzer
  20. Pentest Tools Kali Linux
  21. Hack Tools For Ubuntu
  22. Pentest Tools For Mac
  23. Pentest Tools Windows
  24. Pentest Tools Website Vulnerability
  25. Pentest Tools Bluekeep
  26. Pentest Tools For Windows
  27. Tools Used For Hacking
  28. Hacking Tools Usb
  29. Hacking Tools For Mac
  30. Hack Tools For Ubuntu
  31. Pentest Tools Find Subdomains
  32. Hacker Tools 2019
  33. Pentest Tools Bluekeep
  34. Hacking Tools Github
  35. Free Pentest Tools For Windows
  36. How To Make Hacking Tools
  37. World No 1 Hacker Software
  38. Hack Tool Apk No Root
  39. How To Make Hacking Tools
  40. Hacker Tools Linux
  41. Hacking Tools Download
  42. Hack Tools Pc
  43. Pentest Tools Bluekeep
  44. Hack And Tools
  45. Hack Tools Download
  46. Pentest Tools Github
  47. Hacking App
  48. Pentest Tools Tcp Port Scanner
  49. Hacker Hardware Tools
  50. Hack Tools For Mac
  51. Pentest Automation Tools
  52. Hacking Tools For Mac
  53. How To Hack
  54. Hacker Tools For Windows
  55. Hack Tools For Windows
  56. Pentest Tools Linux
  57. Hacker Tools Mac
  58. Hacking Tools 2019
  59. Top Pentest Tools
  60. Hacker Tools Free
  61. Pentest Tools List
  62. Pentest Tools Find Subdomains
  63. Hacker Tools For Mac
  64. Pentest Reporting Tools
  65. Tools 4 Hack
  66. Hacker Tools List
  67. Pentest Tools Framework
  68. New Hack Tools
  69. Hacking Tools Usb
  70. Hacker Tools 2019
  71. Pentest Tools Apk
  72. Pentest Tools Website Vulnerability
  73. Pentest Tools List
  74. Github Hacking Tools
  75. Hacker Tools Software
  76. Hak5 Tools
  77. Hack Rom Tools
  78. Hacking Tools For Pc
  79. Hack Tools Download
  80. Pentest Tools For Android
  81. New Hack Tools
  82. Pentest Tools Windows
  83. Pentest Tools Framework
  84. Pentest Tools Linux
  85. Nsa Hacker Tools
  86. Hack Tool Apk
  87. Pentest Tools Free
  88. Hacking Tools Kit
  89. Pentest Tools Nmap
  90. Hacking Tools 2019
  91. Bluetooth Hacking Tools Kali
  92. Hacking Tools
  93. Hack And Tools
  94. Pentest Tools For Mac
  95. Pentest Tools Open Source
  96. Hacking Tools Name
  97. Hacker Security Tools
  98. Hack Tools Github
  99. Kik Hack Tools
  100. Hack Tools For Pc
  101. World No 1 Hacker Software
  102. Hacker Tools Linux
  103. New Hack Tools
  104. Hacker Tools Free
  105. Hacking Tools Usb
  106. Hacker Tools Hardware
  107. Hack Tools Download
  108. Hacking Tools For Windows
  109. Hacker Tools Apk
  110. Hack Tools For Pc
  111. Hacker Security Tools
  112. Hacker Tools Github
  113. Pentest Tools For Ubuntu
  114. Hacking Tools Download
  115. Pentest Automation Tools
  116. Hacker Tools Online
  117. Hacking Tools Github
  118. Underground Hacker Sites
  119. Hacking Apps
  120. Hacker Tools For Ios
  121. Pentest Tools For Windows
  122. Pentest Tools Windows
  123. Computer Hacker

Hackers Target Defence Contractors' Employees By Posing As Recruiters

The United States Cybersecurity and Infrastructure Security Agency (CISA) has published a new report warning companies about a new in-the-wild malware that North Korean hackers are reportedly using to spy on key employees at government contracting companies. Dubbed 'BLINDINGCAN,' the advanced remote access trojan acts as a backdoor when installed on compromised computers. According to the FBI

via The Hacker News

Related posts


  1. Pentest Tools Website
  2. Pentest Tools
  3. Wifi Hacker Tools For Windows
  4. Hacking Tools Pc
  5. Kik Hack Tools
  6. Pentest Tools For Windows
  7. Hack Tools For Ubuntu
  8. Hack Tools For Pc
  9. Hacking Tools
  10. Pentest Reporting Tools
  11. Hack Tools Mac
  12. Hacks And Tools
  13. Hacker Search Tools
  14. Pentest Tools For Windows
  15. Hacking Tools Windows
  16. Best Hacking Tools 2019
  17. Hacker Tools Mac
  18. Hack Tools For Ubuntu
  19. Hack Tool Apk
  20. Hak5 Tools
  21. Hacking Tools For Games
  22. Hacking Tools For Windows Free Download
  23. Hack Tools For Pc
  24. Pentest Recon Tools
  25. Hacking Tools And Software
  26. New Hack Tools
  27. Install Pentest Tools Ubuntu
  28. Hak5 Tools
  29. Usb Pentest Tools
  30. Hacking Tools Online
  31. Best Hacking Tools 2019
  32. Hack Tools Mac
  33. Pentest Tools Free
  34. Hacking Tools For Games
  35. Hacking Apps
  36. Hack Tool Apk No Root
  37. Hacking Tools For Mac
  38. Hack Tools For Ubuntu
  39. Hacking Tools Windows
  40. Pentest Tools Tcp Port Scanner
  41. Hacking Tools
  42. Hack And Tools
  43. Hacker Tools Apk
  44. Github Hacking Tools
  45. Pentest Tools Open Source
  46. Best Hacking Tools 2019
  47. Hack Tools 2019
  48. Hacker Tools
  49. Tools For Hacker
  50. Growth Hacker Tools
  51. Pentest Tools Find Subdomains
  52. New Hack Tools
  53. Hacker Search Tools
  54. Hacking Tools Download
  55. Kik Hack Tools
  56. Hacking Tools Mac
  57. Pentest Tools Download
  58. Hack Tools For Windows
  59. Hacking Tools Kit
  60. Pentest Tools Android
  61. Hacking Tools For Beginners
  62. Easy Hack Tools
  63. Pentest Tools Windows
  64. Hack Tools For Mac
  65. Hacking Tools For Pc
  66. Hacking Tools Pc
  67. Hackrf Tools
  68. Nsa Hacker Tools
  69. Tools 4 Hack
  70. Hacker Tools Mac
  71. Pentest Automation Tools
  72. Pentest Tools Apk
  73. Hacking Tools For Pc
  74. Hackers Toolbox
  75. Pentest Tools Website Vulnerability
  76. Hacker Tools
  77. Hacker
  78. Hacker Tools Free Download
  79. Install Pentest Tools Ubuntu
  80. Pentest Tools Linux
  81. Hack Tool Apk No Root
  82. Hacking Tools Name
  83. Hacking Tools For Games
  84. Pentest Tools Website Vulnerability
  85. Hacking Tools Pc
  86. Pentest Tools Kali Linux
  87. Termux Hacking Tools 2019
  88. Pentest Automation Tools
  89. Hacker Tools
  90. Easy Hack Tools
  91. Pentest Tools Open Source
  92. Hacking Tools For Windows Free Download
  93. Hack Tool Apk
  94. Hack Tool Apk
  95. Pentest Tools Free
  96. Hack Tools
  97. Kik Hack Tools
  98. Pentest Tools Android
  99. Hacking Tools Hardware
  100. New Hacker Tools
  101. Best Hacking Tools 2019
  102. Pentest Tools Url Fuzzer
  103. Github Hacking Tools
  104. Nsa Hack Tools
  105. Hack Tool Apk
  106. Best Hacking Tools 2020
  107. Free Pentest Tools For Windows
  108. Hack Tool Apk
  109. Hack Website Online Tool
  110. Pentest Tools Url Fuzzer
  111. Hacker Hardware Tools
  112. Pentest Tools Android
  113. Hacking Tools For Mac
  114. Pentest Tools Linux
  115. Pentest Tools For Android
  116. Android Hack Tools Github
  117. Hacking Tools Name
  118. Hacking Tools For Games
  119. Hacker Tool Kit
  120. Tools Used For Hacking
  121. Pentest Tools Framework
  122. Hacker Tools Free Download
  123. Hacker Tools For Mac
  124. Hack Tools Pc
  125. Pentest Tools For Android
  126. Pentest Tools Alternative
  127. Hacker Techniques Tools And Incident Handling
  128. Pentest Tools Bluekeep
  129. Hacker Tools
  130. Underground Hacker Sites
  131. Hak5 Tools
  132. Pentest Tools Framework
  133. Computer Hacker
  134. Android Hack Tools Github
  135. Hacking Tools Usb
  136. Hacker Tools For Mac
  137. Hacks And Tools
  138. Install Pentest Tools Ubuntu
  139. Hacker Tools Hardware
  140. Pentest Box Tools Download
  141. Pentest Tools Kali Linux
  142. Hacking Tools Usb
  143. Hacker Tools 2020
  144. Hacking Tools Online
  145. Hacking Tools Github
  146. Pentest Tools Website Vulnerability
  147. Underground Hacker Sites
  148. Best Hacking Tools 2020
  149. Pentest Tools Linux
  150. Pentest Box Tools Download
  151. Pentest Tools Android
  152. Pentest Tools Port Scanner
  153. Hack Tool Apk No Root
  154. Hacking Tools 2019
  155. Hacking Tools Free Download
  156. Hack Tools For Mac
  157. Hack Tools For Ubuntu
  158. Hacking Tools For Games
  159. Hack Tools For Windows
  160. Hacking Tools Download
  161. Hacker Tools Mac
  162. Hacker Tools Windows
  163. Nsa Hack Tools
  164. Hack Website Online Tool
  165. Hacking Tools For Windows 7

Nipe - A Script To Make TOR Network Your Default Gateway



Tor enables users to surf the Internet, chat and send instant messages anonymously, and is used by a wide variety of people for both Licit and Illicit purposes. Tor has, for example, been used by criminals enterprises, Hacktivism groups, and law enforcement agencies at cross purposes, sometimes simultaneously.

Nipe is a Script to make Tor Network your Default Gateway.

This Perl Script enables you to directly route all your traffic from your computer to the Tor Network through which you can surf the Internet Anonymously without having to worry about being tracked or traced back.

Download and install:
    git clone https://github.com/GouveaHeitor/nipe
cd nipe
cpan install Switch JSON LWP::UserAgent

Commands:
    COMMAND          FUNCTION
install Install dependencies
start Start routing
stop Stop routing
restart Restart the Nipe process
status See status

Examples:

perl nipe.pl install
perl nipe.pl start
perl nipe.pl stop
perl nipe.pl restart
perl nipe.pl status

Bugs

More information


  1. Pentest Tools
  2. Hacker Tools Free Download
  3. Hacking Tools For Windows Free Download
  4. New Hack Tools
  5. Hacking Tools For Games
  6. Hack Tool Apk No Root
  7. Pentest Tools List
  8. Hacker Techniques Tools And Incident Handling
  9. Hacker Tools Online
  10. Pentest Automation Tools
  11. Hacker Tools Online
  12. Hacking Tools For Mac
  13. Hacker Tools Hardware
  14. Pentest Tools For Android
  15. Hackers Toolbox
  16. Hacker Tools Apk
  17. Growth Hacker Tools
  18. Install Pentest Tools Ubuntu
  19. Pentest Tools Nmap
  20. Hacker Tools 2019
  21. Hacking Tools For Windows
  22. Bluetooth Hacking Tools Kali
  23. Hacking Tools Kit
  24. Install Pentest Tools Ubuntu
  25. Hacker Tools
  26. Hack Tools
  27. Hacking Tools For Windows Free Download
  28. Pentest Tools Free
  29. Hacker Hardware Tools
  30. Black Hat Hacker Tools
  31. What Are Hacking Tools
  32. Pentest Tools Github
  33. Pentest Tools Kali Linux
  34. Hack Tools Github
  35. How To Hack
  36. Growth Hacker Tools
  37. Hack And Tools
  38. Pentest Tools Kali Linux
  39. Game Hacking
  40. Pentest Tools Download
  41. Beginner Hacker Tools
  42. Pentest Recon Tools
  43. Hacking Tools For Pc
  44. Hacker Tools Linux
  45. Hack Tools For Games
  46. Hacking Tools And Software
  47. Hacking Tools Software
  48. Nsa Hacker Tools
  49. Hack Tools 2019
  50. Hacker Tools For Ios
  51. Github Hacking Tools
  52. Kik Hack Tools
  53. Hacking Tools Download
  54. Pentest Tools Windows
  55. Hacker Tools Hardware
  56. Hacker Tools For Pc
  57. What Are Hacking Tools
  58. What Is Hacking Tools
  59. Android Hack Tools Github
  60. Hacking Tools Download
  61. Ethical Hacker Tools
  62. Usb Pentest Tools
  63. Pentest Tools Website
  64. Hacker Tools 2019
  65. Hacking Tools Kit
  66. Hack Apps
  67. Best Pentesting Tools 2018
  68. Hacker Tools 2019
  69. Usb Pentest Tools
  70. Github Hacking Tools
  71. Pentest Reporting Tools
  72. Blackhat Hacker Tools
  73. Pentest Tools Github
  74. Hacker Hardware Tools
  75. Hacker Security Tools
  76. Pentest Tools For Android
  77. Hacking App
  78. Hacker Tools For Pc
  79. Hack App
  80. Pentest Reporting Tools
  81. What Is Hacking Tools
  82. What Is Hacking Tools
  83. How To Make Hacking Tools
  84. Best Pentesting Tools 2018
  85. Top Pentest Tools
  86. Hacking Tools For Mac
  87. Pentest Tools Alternative
  88. Best Hacking Tools 2019
  89. Hacking Tools Kit