Hot answers tagged

4

Using grep: grep -E 'hello|world' file Using awk: awk '/hello|world/' file


2

Reinstalling should be a last resort. Try rebooting with advanced options and restoring from a restore point before you removed the admin account. If that doesn't work, you can create a Windows 10 recovery drive, and boot from it. When you get to recovery options, choose Command Prompt and type the following commands (replace C with whatever your OS drive is ...


2

I understand that in Windows 10 Administrator is equivalent to the SuperUser in Linux. It's not. First, administrators are constrained by UAC. If you're logged in as an administrator, but aren't granted full access, first make sure you're using an elevated Command Prompt window (e.g. by holding Ctrl+Shift while opening it, and getting the UAC prompt). (...


1

You have placed the registry key in the LOCAL_MACHINE hive. The Run subkey programs will all be executed using the SYSTEM user, and for that you need Administrative privileges. If your current user is local admin, these programs will run normally. If not, a prompt will popup asking for administrative approval (UAC) If you do not want to have this prompt, ...


1

No you cannot do this. As Ramhound explains, they are accessing it from their own network. I would recommend that you ask your ISP to put your router into Bridged mode. This will make the router act like a bridge instead of a router. You can then go buy your own router and use that instead to apply all the port forwardings and other networking settings you ...


1

Drag and Drop from a standard user process (Medium integrity level) to an elevated process (High integrity) never works because it could be used in a Privilege escalation attack. A normal user could open a file in an elevated process and potentially execute some code with higher privilege than he holds. Running Visual Studio as admin is sometimes required ...


1

You can use grep with the -x option to match whole line and (Extended) Regex operator, |, to perform a logical OR between patterns: grep -xE 'hello|world' file.txt If your grep doesn't support the -E option, use Basic Regex with escaped |: grep -x 'hello\|world' file.txt Additionally, if you can't use the -x option to match the whole line, use Regex ...


1

As a general practice, it is good if you use original sources (author's repositories). The github link you provided isn't the original link. After much googling I couldn't find the original link, the author's web page seems to be down (Here is the web-archive link). I then looked for mdk3 in Kali Linux's repositories (Kali Linux is successor to backtrack). ...


1

You can remove the administrative shares on a Windows box and prevent them from being created automatically by editing the following registry key and setting its value to 0: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer To apply this change, you must stop and restart the server service, which you can easily ...



Only top voted, non community-wiki answers of a minimum length are eligible