---
# System prepended metadata

title: Área de Transferência

---

# Comandos



## Módulo 9

[SQL Injection]
AppliesTo=.asp,.aspx
DenyDataSection=SQL Injection Strings
ScanUrl=0
ScanAllRaw=0
ScanQueryString=1
ScanHeaders=0

[SQL Injection Strings]
\-\-
;%3b ; a semicolon
/*
@ ; also catches @@
char ; also catches nchar and varchar
alter
begin
cast
convert
create
cursor
declare
delete
drop
end
exec ; also catches execute
fetch
insert
kill
open
select
sys ; also catches sysobjects and syscolumns
table
update


## Módulo 10

USE MASTER;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD='Passw00rdCND'
GO

CREATE CERTIFICATE CND
WITH 
SUBJECT='CERTIFIED NETWORK DEFENCE';
GO

USE [CNDAccess]
GO
CREATE TABLE empdata (Empid nvarchar(50) NOT NULL,
Empname nvarchar(50) NULL, CONSTRAINT [PK_empdata] PRIMARY KEY CLUSTERED(Empid));
GO

INSERT INTO empdata (Empid, Empname) VALUES(1,'john');
INSERT INTO empdata (Empid, Empname) VALUES(2,'Martin');
INSERT INTO empdata (Empid, Empname) VALUES(3,'Alice');
INSERT INTO empdata (Empid, Empname) VALUES(4,'Bob');
INSERT INTO empdata (Empid, Empname) VALUES(5,'Cherry');

Create Database Encryption Key with Algorithm = AES_256 
Encryption by Server Certificate CND;
GO

Alter Database CNDAccess SET ENCRYPTION ON;
GO

Use MASTER
select * from sys.certificates;

Select encryption_state, percent_complete, encryptor_type, * from sys.dm_database_encryption_keys



-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBGNqVQoBCACo00Pwtr/75+PoJs8UlOqVc3zSj2FoAlz8tvhkKvUgRwA84VvF
lq5Nq6RGYu7YHYBbvBP3KUbVM5vyGu6e3TG9dD747zF2lSzSgujdmq670fqIO5Q5
eoGb4NHr9J0C/nVZybzrXSYrNqtcKarjCZ2WKker48yhtWFF50hqZmAAUZD0lMgE
Oni6+5ENVzG5d75bLibTk4gjpi5A8fOR6jyJqmmWlhLf8N0eqqaeu/i6AuVe2lkh
jHKi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k6dBS90OBEXGH4TSXcp5/ecq/kpT7OHIt34T6ib+kqt1p9SfPv1DFY2NdfhHxSKd
UcW7/8kVTTeWHZbLEWR7ucTylm9+bNdqqvC3GOzdHItKzU4lJvVa0l090WDzn4A1
JttnngEN6LclxM1rJRPDg+OfjpozpdDNKIXcSALcLs6rv7baxYPxR1qnfDXIXJ3M
BeXEgCAyDA8hSeCZYza8/JIOt7Fm3V6NOyhg+jtivJ4hsF7H5uDkqJiXHuw+Htp3
k6EoEov7KpGo5fbg3G+zTf6YPIYIyI0XRGyHUe4xrdJxAS8ZAZSXOXE9rlGS+o+M
hiFm08FDnkBqrO7c+zNA8VmDAdKrWhtOqBVxwZOh5w+vgQLxTNu3iEM9dtIhKEBZ
bej50nuFG5lNAsyk51WbnempgYwMqgQ1gBO8doRO/Rqc/XFWlf3+PoIGprVLcO5H
wMY=
=xmwd
-----END PGP MESSAGE-----


## Módulo 11

{
"icc": false,
"userns-remap": "default",
"log-driver": "syslog",
"live-restore": true,
"userland-proxy": false,
"no-new-privileges": true
}


## Módulo 15

Passo 18.
[monitor://C:\inetpub\logs\logfiles] 
sourcetype=iis 
ignoreOlderThan =14d 
host = WebServer

21. 
[iis*]
Pulldown_type=true
MAXTIMESTAMPLOOKAHEAD =32
SHOULD_LINEMERGE = False
CHECK_FOR_HEADER
REPORT – iis2 =iis2

24.
[iis*]
Pulldown_type=true
MAXTIMESTAMPLOOKAHEAD =32
SHOULD_LINEMERGE =False
CHECK_FOR_HEADER
REPORT -iis2 =iis2

27.
[default]
host -WebServer
[ignore_comments]
REGEX = ^# .*
DEST_KEY =queue
FORMAT =nullQueue
[iis2]
DELIMS =” ”
FIELDS = date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken













